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

Function Events_Push

src/Window_BeOS.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static void Events_Push(const CCEvent* event) {
61 Mutex_Lock(events_mutex);
62 {
63 if (events_count >= events_capacity) {
64 Utils_Resize((void**)&events_list, &events_capacity,
65 sizeof(CCEvent), EVENTS_DEFAULT_MAX, 20);
66 }
67 events_list[events_count++] = *event;
68 }
69 Mutex_Unlock(events_mutex);
70}
71
72static cc_bool Events_Pull(CCEvent* event) {
73 cc_bool found = false;

Callers 4

DispatchMessageMethod · 0.70
ProcessKeyInputFunction · 0.70
UpdateMouseButtonFunction · 0.70
HandleMouseMovementFunction · 0.70

Calls 3

Utils_ResizeFunction · 0.85
Mutex_LockFunction · 0.70
Mutex_UnlockFunction · 0.70

Tested by

no test coverage detected