MCPcopy Create free account
hub / github.com/ddnet/ddnet / CursorRelative

Method CursorRelative

src/engine/input.h:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 virtual bool GetDropFile(char *aBuf, int Len) = 0;
198
199 ECursorType CursorRelative(float *pX, float *pY)
200 {
201 if(MouseRelative(pX, pY))
202 return CURSOR_MOUSE;
203 IJoystick *pJoystick = GetActiveJoystick();
204 if(pJoystick && pJoystick->Relative(pX, pY))
205 return CURSOR_JOYSTICK;
206 return CURSOR_NONE;
207 }
208};
209
210class IEngineInput : public IInput

Callers 2

OnUpdateMethod · 0.80
OnUpdateMethod · 0.80

Calls 1

RelativeMethod · 0.80

Tested by

no test coverage detected