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

Function PollControls

Descent3/Controls.cpp:703–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701// INTERFACE FUNCTIONS
702
703void PollControls() {
704 // only read at the specified rate to keep things consistant. manager control system timer
705 if (!Control_poll_flag)
706 return;
707 if (Controller)
708 Controller->poll();
709 /*
710 Control_current_time += Frametime;
711 Control_frametime = Control_current_time - Control_interval_time;
712 if (Control_frametime >= CONTROL_POLL_RATE) {
713 Control_interval_time = Control_current_time;
714 if (Controller)
715 Controller->poll();
716 }
717 */
718}
719
720// Read the keyboard & other controllers. Fills in the specified structure.
721void ReadPlayerControls(game_controls *controls) {

Callers 3

ReadPlayerControlsFunction · 0.85
ProcessButtonsFunction · 0.85
TCAMReadControlsFunction · 0.85

Calls 1

pollMethod · 0.45

Tested by

no test coverage detected