1 #include <msp/graphics/window_private.h>
8 void Mouse::input_event(const Graphics::Window::Event &event)
10 switch(event.cevent.type)
14 case RIGHT_MOUSE_DOWN:
16 case OTHER_MOUSE_DOWN:
18 set_button_state(event.cevent.button.button, event.cevent.button.state, true);
21 set_axis_value(MOUSE_X_AXIS, event.cevent.motion.x*2.0/window.get_width()-1.0, true);
22 set_axis_value(MOUSE_Y_AXIS, event.cevent.motion.y*2.0/window.get_height()-1.0, true);