mirror of
https://github.com/KarolS/millfork.git
synced 2024-11-05 15:06:24 +00:00
16 lines
293 B
Plaintext
16 lines
293 B
Plaintext
|
// Generic module for joystick/gamepad support
|
||
|
|
||
|
// Horizontal movement: -1 for left, 1 for right
|
||
|
sbyte input_dx
|
||
|
|
||
|
// Vertical movement: -1 for up, 1 for down
|
||
|
sbyte input_dy
|
||
|
|
||
|
// Main button: 1 pressed, 0 not pressed
|
||
|
byte input_btn
|
||
|
|
||
|
void reset_joy() {
|
||
|
input_dx = 0
|
||
|
input_dy = 0
|
||
|
input_btn = 0
|
||
|
}
|