flat assembler
Message board for the users of flat assembler.

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

Author
Thread Post new topic Reply to topic
eisbaer



Joined: 25 Nov 2012
Posts: 8
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: 2910
Location: 0x77760000
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: 7636
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
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: 118
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-2018, Tomasz Grysztar.

Powered by rwasa.