Implement send_input_event

This commit is contained in:
Ben Meadors 2025-06-11 17:27:19 -05:00
parent 53380fce88
commit f7824eb09d
2 changed files with 34 additions and 0 deletions

View file

@ -2,6 +2,11 @@
*AdminMessage.session_passkey max_size:8
*InputEvent.event_code max_size:8
*InputEvent.kb_char max_size:8
*InputEvent.touch_x max_size:16
*InputEvent.touch_y max_size:16
*AdminMessage.set_canned_message_module_messages max_size:201
*AdminMessage.get_canned_message_module_messages_response max_size:201
*AdminMessage.delete_file_request max_size:201

View file

@ -166,6 +166,28 @@ message AdminMessage {
SD = 1;
}
/*
* Input event message to be sent to the node.
*/
message InputEvent {
/*
* The input event code
*/
uint32 event_code = 1;
/*
* Keyboard character code
*/
uint32 kb_char = 2;
/*
* The touch X coordinate
*/
uint32 touch_x = 3;
/*
* The touch Y coordinate
*/
uint32 touch_y = 4;
}
/*
* TODO: REPLACE
*/
@ -296,6 +318,13 @@ message AdminMessage {
* Remove backups of the node's preferences
*/
BackupLocation remove_backup_preferences = 26;
/*
* Send an input event to the node.
* This is used to trigger phyiscal input events like button presses, touch events, etc.
*/
InputEvent send_input_event = 27;
/*
* Set the owner for this node
*/