MCPcopy Create free account
hub / github.com/ZDoom/Raze / AddEvent

Method AddEvent

source/core/inputstate.h:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void AddEvent(const event_t* ev)
29 {
30 if (ev->type != EV_KeyDown && ev->type != EV_KeyUp)
31 return;
32
33 const int key = ev->data1;
34 KeyStatus.Set(key, ev->type == EV_KeyDown);
35
36 // Check if key is to be excluded from setting AnyKeyStatus.
37 const bool ignore = key == KEY_VOLUMEDOWN || key == KEY_VOLUMEUP ||
38 (key > KEY_LASTJOYBUTTON && key < KEY_PAD_LTHUMB_RIGHT);
39
40 if (KeyStatus[key] && !ignore)
41 AnyKeyStatus = true;
42 }
43
44 void ClearAllInput()
45 {

Callers 1

System_DispatchEventFunction · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected