-void Mouse::button_press(int, int, unsigned btn, unsigned)
-{
- set_button_state(btn, true, true);
-}
-
-void Mouse::button_release(int, int, unsigned btn, unsigned)
-{
- set_button_state(btn, false, true);
-}
-
-void Mouse::pointer_motion(int x, int y)
-{
- set_axis_value(0, x*2.0f/source.get_width()-1.0f, true);
- set_axis_value(1, 1.0f-y*2.0f/source.get_height(), true);
-}
-