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

Method flush

win32/WinController.cpp:418–427  ·  view source on GitHub ↗

flushes all controller information

Source from the content-addressed store, hash-verified

416
417// flushes all controller information
418void gameWinController::flush() {
419 bool old_mse = m_MouseActive, old_joy = m_JoyActive;
420
421 ddio_KeyFlush();
422 ddio_MouseQueueFlush();
423
424 // does real flush
425 mask_controllers(false, false);
426 mask_controllers(old_joy, old_mse);
427}
428
429bool gameWinController::get_packet(int id, ct_packet *packet, ct_format alt_format) {
430 float val = (float)0.0;

Callers

nothing calls this directly

Calls 2

ddio_KeyFlushFunction · 0.85
ddio_MouseQueueFlushFunction · 0.85

Tested by

no test coverage detected