-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSDL_touch.fth
41 lines (35 loc) · 1.56 KB
/
SDL_touch.fth
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\ This file has been generated using SWIG and fsi,
\ and is already platform dependent, search for the corresponding
\ fsi-file to compile it where no one has compiled it before ;)
\ Forth systems have their own own dynamic loader and don't need addional C-Code.
\ That's why this file will just print normal forth-code once compiled
\ and can be used directly with include or require.
\ As all comments are stripped during the compilation, please
\ insert the copyright notice of the original file here.
\ ----===< prefix >===-----
c-library sdl_touch
s" SDL2" add-lib
\c #include <SDL2/SDL_touch.h>
\ ----===< int constants >===-----
\ --------===< enums >===---------
#-1 constant SDL_TOUCH_DEVICE_INVALID
#0 constant SDL_TOUCH_DEVICE_DIRECT
#1 constant SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE
#2 constant SDL_TOUCH_DEVICE_INDIRECT_RELATIVE
\ -------===< structs >===--------
\ struct SDL_Finger
begin-structure SDL_Finger
drop 8 4 +field SDL_Finger-x
drop 0 8 +field SDL_Finger-id
drop 12 4 +field SDL_Finger-y
drop 16 4 +field SDL_Finger-pressure
drop 24 end-structure
\ ------===< functions >===-------
c-function SDL_GetNumTouchDevices SDL_GetNumTouchDevices -- n ( -- )
c-function SDL_GetTouchDevice SDL_GetTouchDevice n -- n ( index -- )
c-function SDL_GetTouchName SDL_GetTouchName n -- a ( index -- )
c-function SDL_GetTouchDeviceType SDL_GetTouchDeviceType n -- n ( touchID -- )
c-function SDL_GetNumTouchFingers SDL_GetNumTouchFingers n -- n ( touchID -- )
c-function SDL_GetTouchFinger SDL_GetTouchFinger n n -- a ( touchID index -- )
\ ----===< postfix >===-----
end-c-library