libmsx
C library for MSX
Loading...
Searching...
No Matches
input.h File Reference

Input devices such as Joypad, for example. More...

#include <stdint.h>
+ Include dependency graph for input.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INPUT_H
 
#define VK_UP   (1 << 0)
 Bitmask for UP direction of joystick or UP arrow key.
 
#define VK_DOWN   (1 << 1)
 Bitmask for DOWN direction of joystick or DOWN arrow key.
 
#define VK_LEFT   (1 << 2)
 Bitmask for LEFT direction of joystick or LEFT arrow key.
 
#define VK_RIGHT   (1 << 3)
 Bitmask for RIGHT direction of joystick or RIGHT arrow key.
 
#define VK_FIRE_0   (1 << 4)
 Bitmask for trigger button #1 or SPACE key.
 
#define VK_FIRE_1   (1 << 5)
 Bitmask for trigger button #2.
 

Functions

uint8_t joypad_get_state (uint8_t controller)
 MSX Get the status of the joystick buttons and levers.
 

Detailed Description

Input devices such as Joypad, for example.

Definition in file input.h.

Macro Definition Documentation

◆ INPUT_H

#define INPUT_H

Definition at line 24 of file input.h.