gbemu/include/gamepad.h

23 lines
378 B
C
Raw Normal View History

2025-02-01 19:05:25 -07:00
#pragma once
#include <common.h>
typedef struct {
bool start;
bool select;
bool a;
bool b;
bool up;
bool down;
bool left;
bool right;
} gamepad_state;
void gamepad_init();
bool gamepad_button_sel();
bool gamepad_dir_sel();
void gamepad_set_sel(u8 value);
2025-02-19 21:35:26 -07:00
void gamepad_int_update();
2025-02-01 19:05:25 -07:00
gamepad_state *gamepad_get_state();
u8 gamepad_get_output();