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

Function Window_ProcessEvents

src/symbian/Window_Symbian.cpp:966–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966void Window_ProcessEvents(float delta) {
967 CCEvent event;
968 while (Events_Pull(&event)) {
969 switch (event.type) {
970 case CC_KEY_DOWN:
971 Input_SetPressed(event.i1);
972 break;
973 case CC_KEY_UP:
974 Input_SetReleased(event.i1);
975 break;
976 case CC_KEY_INPUT:
977 Event_RaiseInt(&InputEvents.Press, event.i1);
978 break;
979#ifdef CC_BUILD_TOUCH
980 case CC_TOUCH_ADD:
981 Input_AddTouch(static_cast<long>(event.i1), event.i2, event.i3);
982 break;
983 case CC_TOUCH_REMOVE:
984 Input_RemoveTouch(static_cast<long>(event.i1), event.i2, event.i3);
985 break;
986#endif
987 }
988 }
989}
990
991void Window_EnableRawMouse(void) {
992 Input.RawMode = true;

Callers

nothing calls this directly

Calls 6

Input_SetPressedFunction · 0.85
Input_SetReleasedFunction · 0.85
Event_RaiseIntFunction · 0.85
Input_AddTouchFunction · 0.85
Input_RemoveTouchFunction · 0.85
Events_PullFunction · 0.70

Tested by

no test coverage detected