mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Add Rumble to Lib
This commit is contained in:
parent
fbb19f94ea
commit
81984b7d48
5 changed files with 52 additions and 4 deletions
|
@ -114,6 +114,12 @@ typedef struct chiaki_audio_stream_info_event_t
|
|||
ChiakiAudioHeader audio_header;
|
||||
} ChiakiAudioStreamInfoEvent;
|
||||
|
||||
typedef struct chiaki_rumble_event_t
|
||||
{
|
||||
uint8_t unknown;
|
||||
uint8_t left;
|
||||
uint8_t right;
|
||||
} ChiakiRumbleEvent;
|
||||
|
||||
typedef enum {
|
||||
CHIAKI_EVENT_CONNECTED,
|
||||
|
@ -121,6 +127,7 @@ typedef enum {
|
|||
CHIAKI_EVENT_KEYBOARD_OPEN,
|
||||
CHIAKI_EVENT_KEYBOARD_TEXT_CHANGE,
|
||||
CHIAKI_EVENT_KEYBOARD_REMOTE_CLOSE,
|
||||
CHIAKI_EVENT_RUMBLE,
|
||||
CHIAKI_EVENT_QUIT,
|
||||
} ChiakiEventType;
|
||||
|
||||
|
@ -131,6 +138,7 @@ typedef struct chiaki_event_t
|
|||
{
|
||||
ChiakiQuitEvent quit;
|
||||
ChiakiKeyboardEvent keyboard;
|
||||
ChiakiRumbleEvent rumble;
|
||||
struct
|
||||
{
|
||||
bool pin_incorrect; // false on first request, true if the pin entered before was incorrect
|
||||
|
|
|
@ -26,6 +26,7 @@ extern "C" {
|
|||
|
||||
typedef enum chiaki_takion_message_data_type_t {
|
||||
CHIAKI_TAKION_MESSAGE_DATA_TYPE_PROTOBUF = 0,
|
||||
CHIAKI_TAKION_MESSAGE_DATA_TYPE_RUMBLE = 7,
|
||||
CHIAKI_TAKION_MESSAGE_DATA_TYPE_9 = 9
|
||||
} ChiakiTakionMessageDataType;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue