Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multiple key support back in EMUK (or reviving the HOLD) #145

Open
jupiterbjy opened this issue Aug 29, 2023 · 3 comments
Open

Add Multiple key support back in EMUK (or reviving the HOLD) #145

jupiterbjy opened this issue Aug 29, 2023 · 3 comments

Comments

@jupiterbjy
Copy link

Suggestion

Either of this suggestions would make my duckypad usable again, or I might need to downgrade firmware (hope it works!)

  1. Add back HOLD's 2 (or more the better) key support in EMUK

    • Might break compatibility?
  2. Allow use of multiple EMUK lines in single button

  3. Revive deleted HOLD


Encountering issue

I was delaying update of firmware and just recently updated, and found out HOLD SHIFT SPACE is now EMUK SHIFT SPACE and syntax is no longer valid.

Previously HOLD command could held up to 2 keys:

`HOLD` command can be followed by up to 2 keys, they can be character or special keys.

Now, since EMUK don't support this and even worse there can't be 2 EMUK in a button, I have no way of setting Shift + Space hold down hotkey for arbitrary canvas rotation action, which looks like this:

Animation11

One could edit the hotkey in software they use but there's some softwares that does not allow this - and it doesn't sounds right to rely on AutoHotkey to reassign it just to make it reassigned on duckypad.


Attempted workaround

Since now Variables are added, I tried using variable & loop:

KEYDOWN SHIFT
KEYDOWN SPACE

WHILE $_READKEY != 0
    DELAY 50
END_WHILE

KEYUP SHIFT
KEYUP SPACE

Which actually does not work, as issue indicated on #144 I can't maintain the loop.

@jesusfchavarro
Copy link

a little late but you can assign a button to do:

KEYDOWN SHIFT
KEYDOWN SPACE

and other to do

KEYUP SHIFT
KEYUP SPACE

@jupiterbjy
Copy link
Author

jupiterbjy commented Sep 14, 2024

@jesusfchavarro sadly but surely that isn't an option.

Try using shift key like that in everyday use, using one key as press and other key as unpress or making it as toggle button - it will be fairly obvious you can't unconsciously use it. This hotkey, is just as frequent, short bursted thing that should only work during pressed.

I'm kinda mad that I spent quite a fee for purchase & shipping and yet this is all I get eventually.

@dividium
Copy link

I second this. In my case I would like to use PowerToy's Push-to-talk and it requires (in my config) WINDOWS SHIFT Z.

I've tried this:

KEYDOWN WINDOWS
KEYDOWN SHIFT 
KEYDOWN Z
EMUK Z
KEYUP Z
KEYUP SHIFT 
KEYUP WINDOWS

But the commands beyond the EMUK do not run. After the first press (that behaves correctly), subsequent presses treat is as just Z.

I also tried using a WHILE loop, but it seems as though the script repeats anyways if the key is held down.

A nice flexible approach would be the ability to switch to running one script on KEYDOWN and another on KEYUP. That method would afford a lot of flexibility and might be easier to implement? Might also need the ability to disable key repeat.

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

No branches or pull requests

3 participants