1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-23 08:29:35 +00:00
millfork/include/joy.mfk
2018-12-17 17:18:29 +01:00

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
}