Graal Forums  

Go Back   Graal Forums > General Forums > Graal Main Forum (English)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-30-2009, 11:38 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by fowlplay4 View Post
It uses the onMouseDown events in GUIs, and so on. From what I've seen there's no Multi-touch functionality in GS2 to accommodate for it though. Would be nice if there was: onMultiTouch(touchCoords[])
There's a parameter for which mouse is pressed, GraalControl.onMouseDown(keymod, mx, my, clicks, mouse)
GraalControl.onMouseUp(keymod, mx, my, clicks, mouse)
GraalControl.onMouseDragged(keymod, mx, my, clicks, mouse)
etc

If you press one finger down, mouse will be 1, press a second finger down mouse will be 2, and so on.
Reply With Quote
  #2  
Old 12-31-2009, 02:01 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
There's a parameter for which mouse is pressed, GraalControl.onMouseDown(keymod, mx, my, clicks, mouse)
GraalControl.onMouseUp(keymod, mx, my, clicks, mouse)
GraalControl.onMouseDragged(keymod, mx, my, clicks, mouse)
etc

If you press one finger down, mouse will be 1, press a second finger down mouse will be 2, and so on.
Thanks for sharing this, released my script demo displaying the multi-touch functionality in the Code Gallery.
__________________
Quote:
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.