The following code was posted in this thread:
http://forum.thegamecreators.com/?m=forum_view&t=195049&b=41
Global _UCFSwipeRightTime as Float
Global _UCFSwipeRightX as Integer
Global _UCFSwipeLeftTime as Float
Global _UCFSwipeLeftX as Integer
SetVirtualResolution( 1024, 600 )
SetDisplayAspect( 1024 / 600 )
do
If GetSwipeRight( 0.1, 30 ) = 1 then Flag$ = "You Swiped Right"
If GetSwipeLeft( 0.1, 30 ) = 1 then Flag$ = "You Swiped Left"
If GetRawKeyPressed( 27 ) = 1 then END
Print(Flag$)
Sync()
loop
Function GetSwipeRight( t#, d )
Output = 0
If GetPointerPressed() = 1
_UCFSwipeRightX = GetPointerX() + d
_UCFSwipeRightTime = Timer() + t#
EndIf
If GetPointerState() = 1 and _UCFSwipeRightTime < Timer() and _UCFSwipeRightX < GetPointerX()
_UCFSwipeRightTime = 0
Output = 1
EndIf
EndFunction Output
Function GetSwipeLeft( t#, d )
Output = 0
If GetPointerPressed() = 1
_UCFSwipeLeftX = GetPointerX() - d
_UCFSwipeLeftTime = Timer() + t#
EndIf
If GetPointerState() = 1 and _UCFSwipeLeftTime < Timer() and _UCFSwipeLeftX > GetPointerX()
_UCFSwipeLeftTime = 0
Output = 1
EndIf
EndFunction Output
It appears to work just fine. I tested it on my touch screen in Windows.
As for the dots, create a simple white circle image file and then the correct number of sprites for your pages and set the color for the the page number to something different from the the colors for the others.
Cheers,
Ancient Lady