flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > how to program/use a touchscreen via fasm

Author
Thread Post new topic Reply to topic
eisbaer



Joined: 25 Nov 2012
Posts: 8
eisbaer 16 Jan 2015, 00:29
for example Windows 8.1 Touch

Is there a sample program?

goal:
fast viewer for JPG files (show the files in the current folder)

Screen resolution 1280 x 800

6 large icons - at the top of the screen or on the left side of the screen

Free space (64x64 pixels) -
ICON (64x64 pixels) -
Gap (64x64 pixels) -
ICON (64x64 pixels) -
...

6 buttons = 6 functions

<back> <Image Rotate> <next image>
<image larger> <image smaller> <delete image>

any ideas?

_________________
best regards

PLEASE! KEEP IT SHORT and SIMPLE!
Make everything as simple as possible,
but not simpler - and keep it running!
Post 16 Jan 2015, 00:29
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 16 Jan 2015, 00:45
Quote:
/how to program/use a touchscreen via fasm


FASM is just an assembler that assembles assembly code which calls a system's API.

You need to consult the API.
Post 16 Jan 2015, 00:45
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12738
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 16 Jan 2015, 11:30
afaik, the touch tap is actually a click,
for multi-touch, one would need to refer windows 8 api,

https://www.google.com/search?q=windows+8+touch+api
Post 16 Jan 2015, 11:30
View user's profile Send private message Reply with quote
donn



Joined: 05 Mar 2010
Posts: 321
donn 07 Jan 2016, 16:02
Not sure if this is any help, but a while ago, I was able to get multiple simultaneous taps on a touch tablet in Windows. I think it was fullscreen, so the coordinates were probably not Window-relative. It was also a quick test, so not aware of many limitations:

Code:
        int pointerID;
        POINTER_INFO pointerInfo;
        int x;
        int y;
    


Code:
case WM_POINTERDOWN:
        pointerID = GET_POINTERID_WPARAM(wparam);
        GetPointerInfo(pointerID, &pointerInfo);
        x = pointerInfo.ptPixelLocationRaw.x;
        y = pointerInfo.ptPixelLocationRaw.y;
        break;
    


This is C by the way, but may provide a starting place.
Post 07 Jan 2016, 16:02
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.