fatcoder
Member
|
MouseTouch
I like the concept of the new MouseTouch. I'm just wondering if we might see some more of the Mouse functions show up in MouseTouch. Like wheel() for example (as many touch devices can simulate wheel scrolling, with two fingers for example). Also, the eat() functions would be good so that mouse buttons and touches can be eaten.
In fact, is it possible to eventually merge Mouse and MouseTouch completely, so we just have a single input interface regardless of the device used? Isn't "touch" really just treated like a "mouse" input in many ways? Maybe I don't know enough about how it works, so this could be a bad idea... just a thought.
|
|
05-27-2012 10:14 AM |
|
Esenthel
Administrator
|
RE: MouseTouch
Hi,
I will not merge it because they are 2 different things.
If you scroll with 2 fingers, then there are 2 separate touches, and any wheel scrolling detection should be done manually. (different case is TouchPad where scrolling with 2 fingers is done by the OS)
if you want to access mouse stuff from MouseTouch then do this:
if(!MT.touch(i))this is a mouse and you can use Ms.
|
|
05-27-2012 12:49 PM |
|