* Add a mouse movement event * @param x the x coordinate of the cursor (top-left origin) * @param y the y coordinate of the cursor (top-left origin) * @param xvel the x velocity of the cursor * @param yvel the y velocity of the cursor */
| 102 | * @param yvel the y velocity of the cursor |
| 103 | */ |
| 104 | void InputManager::SDL_mousemove(float x, float y, int xvel, int yvel) |
| 105 | { |
| 106 | //mouse movements are axis events only |
| 107 | reg_axis(static_cast<int>(Special::MOUSEMOVE_X),x); |
| 108 | reg_axis(static_cast<int>(Special::MOUSEMOVE_Y),y); |
| 109 | reg_axis(static_cast<int>(Special::MOUSEMOVE_XVEL), xvel); |
| 110 | reg_axis(static_cast<int>(Special::MOUSEMOVE_YVEL), yvel); |
| 111 | } |
| 112 | |
| 113 | void InputManager::SDL_mousekey(bool state, int charcode) |
| 114 | { |