fallahn / xygine

2D engine / framework built around SFML
219 stars 19 forks source link

Improve gamepad/mouse support in UISystem #97

Closed fallahn closed 4 years ago

fallahn commented 6 years ago

The current hack is to parse joystick move events and turn them to mouse move events, moving the mouse cursor around the screen when navigating menus. Ideally UI components should be auto assigned an index (which can be manually updated) so that joystick and dpad events can be used to select the prev/next control based on the current index - I assume this also affects the keyboard input too.

fallahn commented 5 years ago

UISystem should also handle mouse wheel scroll events, which it currently doesn't.