Skip to content

Add holdInterval in keySimulator#211

Open
mshameersm wants to merge 3 commits into
developfrom
feature/keySimulatorHoldInterval
Open

Add holdInterval in keySimulator#211
mshameersm wants to merge 3 commits into
developfrom
feature/keySimulatorHoldInterval

Conversation

@mshameersm
Copy link
Copy Markdown
Contributor

Add holdInterval parameter for holding the keypress in KeySimulator.
Also, use the keySimulator arguments for delay & repeat as well.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the remote-control abstraction to support a holdInterval parameter (intended to represent holding a keypress) and updates the KeySimulator-backed remote controller to pass repeat/delay/hold options through to the underlying keySimulator command.

Changes:

  • Added holdInterval parameter to commonRemoteClass.sendKey() and propagated it to the selected remote controller.
  • Updated remoteKeySimulator.sendKey() to invoke keySimulator once with -i (delay), -r (repeat), and -p (holdInterval) arguments.
  • Updated remoteNone.sendKey() signature/logging to include holdInterval.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
framework/core/remoteControllerModules/none.py Adds holdInterval to the no-op remote controller interface/logging.
framework/core/remoteControllerModules/keySimulator.py Passes repeat/delay/holdInterval via keySimulator CLI args instead of looping locally.
framework/core/commonRemote.py Adds holdInterval to the public sendKey() API and forwards it to the active remote controller.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread framework/core/commonRemote.py
Comment thread framework/core/remoteControllerModules/none.py
Comment thread framework/core/remoteControllerModules/keySimulator.py Outdated
Comment thread framework/core/remoteControllerModules/keySimulator.py
Copilot AI review requested due to automatic review settings May 6, 2026 05:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Comment thread framework/core/remoteControllerModules/remoteInterface.py
code (str): keycode
repeat (int): number of repeats required
delay (int): delay in seconds between repeats
holdInterval (int): How long to wait between key presses.
Comment thread framework/core/remoteControllerModules/arduino.py
Comment thread framework/core/remoteControllerModules/keySimulator.py
Comment thread framework/core/commonRemote.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants