MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddio_KeyDownTime

Function ddio_KeyDownTime

ddio/key.cpp:178–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176// ----------------------------------------------------------------------------
177
178float ddio_KeyDownTime(int key) {
179 ASSERT(DDIO_key_init);
180
181 // snap off shift states, etc.
182 return ddio_InternalKeyDownTime((uint8_t)(key & 0xff));
183}
184
185// return number of times a key's been down since last call.
186int ddio_KeyDownCount(int key) {

Callers 5

OnIdleMethod · 0.85
get_key_valueMethod · 0.85
get_key_valueMethod · 0.85
SlewFrameFunction · 0.85
DoInputMethod · 0.85

Calls 1

ddio_InternalKeyDownTimeFunction · 0.85

Tested by

no test coverage detected