2019-11-30 14:48:36 +00:00
|
|
|
#include "th04/hardware/inputvar.h"
|
|
|
|
|
|
|
|
// Resets, updates, and returns [key_det].
|
2021-01-09 19:43:48 +00:00
|
|
|
int16_t input_reset_sense();
|
2019-11-30 14:48:36 +00:00
|
|
|
|
|
|
|
// input_reset_sense() with accurate detection of held keyboard keys.
|
2021-01-09 19:43:48 +00:00
|
|
|
int16_t input_reset_sense_held();
|
2019-11-30 14:48:36 +00:00
|
|
|
|
|
|
|
// ORs the current keyboard and joystick state into [key_det], sets
|
|
|
|
// [shiftkey], and returns [key_det].
|
2021-01-09 19:43:48 +00:00
|
|
|
int16_t input_sense();
|
2019-11-30 14:48:36 +00:00
|
|
|
|
2019-11-29 22:57:35 +00:00
|
|
|
// Input sense function used in UIs
|
|
|
|
#define input_reset_sense_interface input_reset_sense_held
|
|
|
|
|
2019-11-30 14:48:36 +00:00
|
|
|
// Waits for all held inputs to be released, then waits the given number of
|
2021-01-09 19:43:48 +00:00
|
|
|
// [frames] for an input to be pressed. Set [frames] to 0 to wait forever.
|
|
|
|
// Returns garbage.
|
|
|
|
int16_t pascal input_wait_for_change(int frames);
|