Hello guys,
I just implemented mouse button support for QT and WinRT Desktop
And I want to suggest one more thing, that might possible break some backwards compatibilities.
Basically currently mouse move is dispatched only when mouse button is pressed.
I want to try to dispatch mouse move events on desktop without the need of pressing the button.
So inside mouse move event you would be able to check button and do some hover effects.
On mobile devices mouse events will automatically be dispatched with left button pressed.
So if have have something draggable in your app, that you do not start on mouse down (which is unlikely, but possible) but drag it on mouse move directly, on desktops it will be dragging automatically without clicking mouse.
I think it is an ok sacrifice for the transition.
Let me know what you think
Comments
Do you think it's possible to enable mouse wheel events too?
Thank you!
http://docs.giderosmobile.com/reference/gideros/Sprite/MOUSE_WHEEL
by @john26 suggestion, I've created mouse hover event
so mouse move is dispatched when mouse moves and any button is pressed and mouse hover is dispatched only on desktops, when mouse moves and no button is pressed
think that will work well
Likes: Holonist
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://deluxepixel.com
If yes, then I could do the same, question is how to attach mouse to Android?
EG: new Razer Android TV game system will have a keyboard and mouse add-on...
http://www.razerzone.com/gaming-controllers/razer-turret
https://deluxepixel.com
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: keszegh, SinisterSoft, john26
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://docs.giderosmobile.com/reference/gideros/Sprite/Event.MOUSE_HOVER#Event.MOUSE_HOVER
http://docs.giderosmobile.com/reference/gideros/Sprite/Event.MOUSE_DOWN#Event.MOUSE_DOWN
perhaps these parts of the reference should be linked to where input events are explained:
http://docs.giderosmobile.com/events.htm
Fragmenter - animated loop machine and IKONOMIKON - the memory game