1 #include <msp/graphics/window_private.h>
7 void Mouse::input_event(const Graphics::Window::Event &event)
9 switch(event.cevent.type)
13 case RIGHT_MOUSE_DOWN:
15 case OTHER_MOUSE_DOWN:
17 set_button_state(event.cevent.button.button, event.cevent.button.state, true);
20 set_axis_value(0, event.cevent.motion.x*2.0/window.get_width()-1.0, true);
21 set_axis_value(1, event.cevent.motion.y*2.0/window.get_height()-1.0, true);