MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Pointer_SetPressed

Function Pointer_SetPressed

src/Input.c:330–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328struct _PointerHooks PointerHooks;
329
330static void Pointer_SetPressed(int idx, cc_bool pressed) {
331 if (pressed) {
332 if (PointerHooks.DownHook && PointerHooks.DownHook(idx)) return;
333
334 Event_RaiseInt(&PointerEvents.Down, idx);
335 } else {
336 if (PointerHooks.UpHook && PointerHooks.UpHook(idx)) return;
337
338 Event_RaiseInt(&PointerEvents.Up, idx);
339 }
340}
341
342static float scrollingVAcc;
343void Mouse_ScrollVWheel(float delta) {

Callers 4

Input_AddTouchFunction · 0.85
Input_RemoveTouchFunction · 0.85
Input_SetPressedFunction · 0.85
Input_SetReleasedFunction · 0.85

Calls 1

Event_RaiseIntFunction · 0.85

Tested by

no test coverage detected