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

Method flush

linux/lnxcontroller.cpp:256–265  ·  view source on GitHub ↗

flushes all controller information

Source from the content-addressed store, hash-verified

254
255// flushes all controller information
256void lnxgameController::flush() {
257 bool old_mse = m_MouseActive, old_joy = m_JoyActive;
258
259 ddio_KeyFlush();
260 ddio_MouseQueueFlush();
261
262 // does real flush
263 mask_controllers(false, false);
264 mask_controllers(old_joy, old_mse);
265}
266
267// returns the value of a requested controller type. make sure you flush the controller before polling.
268ct_config_data lnxgameController::get_controller_value(ct_type type_req) {

Callers

nothing calls this directly

Calls 2

ddio_KeyFlushFunction · 0.85
ddio_MouseQueueFlushFunction · 0.85

Tested by

no test coverage detected