MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_mousemove

Method SDL_mousemove

src/InputManager.cpp:104–111  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

102 * @param yvel the y velocity of the cursor
103 */
104void 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
113void InputManager::SDL_mousekey(bool state, int charcode)
114{

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected