Add Rumble to Lib

This commit is contained in:
Florian Märkl 2020-12-31 23:45:47 +01:00
commit 81984b7d48
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
5 changed files with 52 additions and 4 deletions

View file

@ -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

View file

@ -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;