MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / wheel_callback

Method wheel_callback

olcPixelGameEngine.h:7862–7868  ·  view source on GitHub ↗

TY Moros

Source from the content-addressed store, hash-verified

7860
7861 //TY Moros
7862 static EM_BOOL wheel_callback(int eventType, const EmscriptenWheelEvent* e, void* userData)
7863 {
7864 if (eventType == EMSCRIPTEN_EVENT_WHEEL)
7865 ptrPGE->olc_UpdateMouseWheel(-1 * e->deltaY);
7866
7867 return EM_TRUE;
7868 }
7869
7870 //TY Bispoo
7871 static EM_BOOL touch_callback(int eventType, const EmscriptenTouchEvent* e, void* userData)

Callers

nothing calls this directly

Calls 1

olc_UpdateMouseWheelMethod · 0.80

Tested by

no test coverage detected