MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Mouse_Setup

Method Mouse_Setup

Source/Fodder.cpp:3175–3186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3173}
3174
3175void cFodder::Mouse_Setup() {
3176
3177 mMouse_EventLastButtonsPressed = 0;
3178 mButtonPressLeft = 0;
3179 mButtonPressRight = 0;
3180 mMouseButtonStatus = 0;
3181
3182 mMouseX = (getCameraWidth() / 2) - 9;
3183 mMouseY = (getCameraHeight() / 2) - 9;
3184 mInputMouseX = mMouseX;
3185 mInputMouseY = mMouseY;
3186}
3187
3188void cFodder::Mouse_Cursor_Handle() {
3189 static bool WasClicked = false;

Callers 1

EngineSetupMethod · 0.80

Calls

no outgoing calls

Tested by 1

EngineSetupMethod · 0.64