mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
commit 54e685ba9fef2b5fc1505ddc932e4fa3fe87ed68 Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 17:46:15 2026 -0700 improvements commitb442a51a71Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 14:49:31 2026 -0700 docker: add new build deps for android commit1e6370391eMerge:b21181c0681459Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 14:37:15 2026 -0700 Merge branch 'master' into brightness commitb21181c675Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun Aug 23 16:58:09 2026 -0700 update display brightness - initial implementation
50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
#ifndef VANILLA_PI_CONFIG_H
|
|
#define VANILLA_PI_CONFIG_H
|
|
|
|
#include <stdint.h>
|
|
#include <vanilla.h>
|
|
|
|
#define VPI_CONSOLE_MAX_NAME 256
|
|
#define VPI_CONFIG_BUTTONMAP_SIZE 32
|
|
#define VPI_CONFIG_AXISMAP_SIZE 8
|
|
#define VPI_CONFIG_KEYMAP_SIZE 512
|
|
#define VPI_CONFIG_UNMAPPED -2
|
|
|
|
typedef struct {
|
|
char name[VPI_CONSOLE_MAX_NAME];
|
|
vanilla_bssid_t bssid;
|
|
vanilla_psk_t psk;
|
|
} vpi_console_entry_t;
|
|
|
|
typedef struct {
|
|
uint8_t connected_console_count;
|
|
vpi_console_entry_t *connected_console_entries;
|
|
uint32_t server_address;
|
|
char wireless_interface[VPI_CONSOLE_MAX_NAME];
|
|
char recording_dir[1024];
|
|
int connection_setup;
|
|
int region;
|
|
int swap_abxy;
|
|
int keymap[VPI_CONFIG_KEYMAP_SIZE];
|
|
int buttonmap[VPI_CONFIG_BUTTONMAP_SIZE];
|
|
int axismap[VPI_CONFIG_AXISMAP_SIZE];
|
|
int fullscreen;
|
|
int cursor_in_fullscreen;
|
|
int fast_drm;
|
|
int force_software_decode;
|
|
int autoconnect;
|
|
float screen_brightness;
|
|
} vpi_config_t;
|
|
|
|
extern vpi_config_t vpi_config;
|
|
|
|
void vpi_config_init();
|
|
void vpi_config_free();
|
|
int vpi_config_add_console(vpi_console_entry_t *entry);
|
|
void vpi_config_rename_console(uint8_t index, const char *name);
|
|
void vpi_config_remove_console(uint8_t index);
|
|
void vpi_config_save();
|
|
void vpi_config_reset_default_controls();
|
|
|
|
#endif // VANILLA_PI_CONFIG_H
|