| 701 | // INTERFACE FUNCTIONS |
| 702 | |
| 703 | void 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. |
| 721 | void ReadPlayerControls(game_controls *controls) { |
no test coverage detected