1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 23:48:30 +02:00
VVVVVV/desktop_version/src/ButtonGlyphs.h
Dav999-v 01200b5e64 Switch between controller glyphs and keyboard keys automatically
If a controller button is pressed, a controller is connected (even at
startup!) or an axis is moved, the game will switch to displaying
controller glyphs. If a keyboard key is pressed or the last controller
is removed, the game will switch to displaying keyboard keys.
2023-03-21 19:59:48 -07:00

35 lines
656 B
C

#ifndef BUTTONGLYPHS_H
#define BUTTONGLYPHS_H
#include <SDL.h>
#include <stdbool.h>
#include "ActionSets.h"
#ifdef __cplusplus
extern "C"
{
#endif
void BUTTONGLYPHS_init(void);
bool BUTTONGLYPHS_keyboard_is_available(void);
bool BUTTONGLYPHS_keyboard_is_active(void);
void BUTTONGLYPHS_keyboard_set_active(bool active);
const char* BUTTONGLYPHS_get_wasd_text(void);
const char* BUTTONGLYPHS_get_button(ActionSet actionset, Action action, int binding);
char* BUTTONGLYPHS_get_all_gamepad_buttons(
char* buffer,
size_t buffer_len,
ActionSet actionset,
int action
);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // BUTTONGLYPHS_H