From f7824eb09df989dde7537202043d20efdc6074bb Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jun 2025 17:27:19 -0500 Subject: [PATCH 1/5] Implement send_input_event --- meshtastic/admin.options | 5 +++++ meshtastic/admin.proto | 29 +++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/meshtastic/admin.options b/meshtastic/admin.options index 022c4fd..0e2df37 100644 --- a/meshtastic/admin.options +++ b/meshtastic/admin.options @@ -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 diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 91fbb2b..227ba49 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -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 */ From 20510c79b42bea5af76f0427c351547853c7709f Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jun 2025 18:58:40 -0500 Subject: [PATCH 2/5] Update meshtastic/admin.options Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- meshtastic/admin.options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/admin.options b/meshtastic/admin.options index 0e2df37..f3db113 100644 --- a/meshtastic/admin.options +++ b/meshtastic/admin.options @@ -3,7 +3,7 @@ *AdminMessage.session_passkey max_size:8 *InputEvent.event_code max_size:8 -*InputEvent.kb_char max_size:8 +*AdminMessage.InputEvent.kb_char max_size:8 *InputEvent.touch_x max_size:16 *InputEvent.touch_y max_size:16 From 3d345339354597af324e330ceca6bc3be06596f6 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jun 2025 18:59:12 -0500 Subject: [PATCH 3/5] Update meshtastic/admin.options Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- meshtastic/admin.options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/admin.options b/meshtastic/admin.options index f3db113..43ac44c 100644 --- a/meshtastic/admin.options +++ b/meshtastic/admin.options @@ -5,7 +5,7 @@ *InputEvent.event_code max_size:8 *AdminMessage.InputEvent.kb_char max_size:8 *InputEvent.touch_x max_size:16 -*InputEvent.touch_y max_size:16 +*AdminMessage.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 From 07eb2a85abdd0ee00713be573aa285c233f56c50 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jun 2025 18:59:36 -0500 Subject: [PATCH 4/5] Update admin.options --- meshtastic/admin.options | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshtastic/admin.options b/meshtastic/admin.options index 43ac44c..2f54135 100644 --- a/meshtastic/admin.options +++ b/meshtastic/admin.options @@ -2,9 +2,9 @@ *AdminMessage.session_passkey max_size:8 -*InputEvent.event_code max_size:8 +*AdminMessage.InputEvent.event_code max_size:8 *AdminMessage.InputEvent.kb_char max_size:8 -*InputEvent.touch_x max_size:16 +*AdminMessage.InputEvent.touch_x max_size:16 *AdminMessage.InputEvent.touch_y max_size:16 *AdminMessage.set_canned_message_module_messages max_size:201 From 579578394cf584ae6ee78df47fe3f8625d19d27e Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 11 Jun 2025 19:07:05 -0500 Subject: [PATCH 5/5] Update meshtastic/admin.proto Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- meshtastic/admin.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 227ba49..f9e73b2 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -321,7 +321,7 @@ message AdminMessage { /* * Send an input event to the node. - * This is used to trigger phyiscal input events like button presses, touch events, etc. + * This is used to trigger physical input events like button presses, touch events, etc. */ InputEvent send_input_event = 27;