8/4/2023 0 Comments Cursor changer touhou![]() So, if I could determine differentiate between touch and mouse I could display/hide cursors as appropriate.Ĭlick to expand.It's actually one more thing to think about if you don't want one of those input methods to be accepted, especially when they're not recognized correctly. However (from my understanding of the manual) this is registered as a mouse click/location whether using touch display or mouse. Is it possible to differentiate between a tap and a mouse click? I've been having trouble doing so.įor menus I've been using device_mouse_button_check_pressed() followed by a position_meeting() to detect which button instance and then run appropriate code.įor moving her little mermaid I'm using device_mouse_x() and device_mouse_y() as a target and move_towards_point() to move the player instance. In the end the game is for my 3 year old daughter so if I don't get it perfect it doesn't matter. Move the mouse or gamepad at any time and cursor displays. That way I can display a mouse cursor at game start and if touch is detected the cursor can be hidden. All input methods will be available all the time. ![]() But the cursor is necessary for mouse control. ![]() So the idea was to hide the custom cursor if using touch because it covers up parts of the menu icons and seems unpolished when using touch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |