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

Function OptionsGroupScreen_PointerMove

src/Menus.c:750–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750static int OptionsGroupScreen_PointerMove(void* screen, int id, int x, int y) {
751 struct OptionsGroupScreen* s = (struct OptionsGroupScreen*)screen;
752 int i = Menu_DoPointerMove(s, id, x, y);
753 if (i == -1 || i == s->selectedI) return true;
754 if (i >= Array_Elems(optsGroup_descs)) return true;
755
756 s->selectedI = i;
757 OptionsGroupScreen_UpdateDesc(s);
758 return true;
759}
760
761static const struct ScreenVTABLE OptionsGroupScreen_VTABLE = {
762 OptionsGroupScreen_Init, Screen_NullUpdate, OptionsGroupScreen_Free,

Callers

nothing calls this directly

Calls 2

Menu_DoPointerMoveFunction · 0.85

Tested by

no test coverage detected