llvm-mos-sdk
|
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | KEY_LEFT 0x80 |
#define | KEY_DOWN 0x40 |
#define | KEY_RIGHT 0x20 |
#define | KEY_UP 0x10 |
#define | KEY_RUN 0x08 |
#define | KEY_SELECT 0x04 |
#define | KEY_2 0x02 |
#define | KEY_1 0x01 |
Functions | |
uint8_t | pce_joypad_wr (uint8_t value) |
Write a value to the joypad I/O port, then read the result. More... | |
uint8_t | pce_joypad_read (void) |
Read the first joypad controller's pressed buttons. More... | |
uint8_t | pce_joypad_next (void) |
Read the next joypad controller's pressed buttons. More... | |
Functionality related to the joypad.
#define KEY_1 0x01 |
#define KEY_2 0x02 |
#define KEY_DOWN 0x40 |
#define KEY_LEFT 0x80 |
#define KEY_RIGHT 0x20 |
#define KEY_RUN 0x08 |
#define KEY_SELECT 0x04 |
#define KEY_UP 0x10 |
uint8_t pce_joypad_next | ( | void | ) |
Read the next joypad controller's pressed buttons.
If a multitap is to be used, one should use this function for all controllers after the first one (which should use pce_joypad_read instead).
uint8_t pce_joypad_read | ( | void | ) |
Read the first joypad controller's pressed buttons.
uint8_t pce_joypad_wr | ( | uint8_t | value | ) |
Write a value to the joypad I/O port, then read the result.
value | The value to write. |