-
Notifications
You must be signed in to change notification settings - Fork 53
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
<<Request>> long-press operation #60
Comments
Although, it sends long-press keycode on UP after a long-press (not at the set time), kbd.define_mode_key :SHORT_A_LONG_1, [ Proc.new { kbd.send_key(:KC_A) }, Proc.new { kbd.send_key(:KC_1) }, 500, nil ] is not enough? |
Wow It's almost working!! In my behavior, the keycode is entered with Long-press set time (500). (Not key UP) Thanks > yswallow |
|
Now I'm thinking of a feature as "Triple function key" like this: Behavior model example
Namely, three different behaviors are articulated by two threshold values. In keymap.rbkbd.add_layer :default, %i(BUTTON KC_ENTER KC_SPACE KC_BSPACE) # meishi keypad for example Then, kbd.define_triple_function_key :BUTTON, :KC_0, 300, :KC_1, 2000, :KC_2 If you don't want the "second release key" to happen:kbd.define_triple_function_key :BUTTON, :KC_0, 300, :KC_NO, 2000, :KC_2 If you don't want the "long press key" to happen:kbd.define_triple_function_key :BUTTON, :KC_0, 300, :KC_1, 2000, :KC_NO Each keycode can be an Array of Symbol or a Proc for example:kbd.define_triple_function_key :BUTTON, :KC_0, 300, [:KC_LSFT, :KC_A], 2000, Proc.new { kbd.macro "Long!" } @koyoko1127 Tell me what do you think |
This is not a case this feature should cover because...
Nobody wants to write such a verbose code, right? BTW, could you tell me more about "Hi-dynamic range operations"? I don't know it. |
Ah, but, you may be able to write like this, lol
Evil Ruby... |
I don't know what " Hi-dynamic range operations " is officially called. For example, when searching for an arbitrary value from 0 to 1000. micro motion (微動) ==> 0,1,2,3,4,....1000 From now on, we need to control high resolution and large (long) size data in photo, CAD, and video. Thanks |
@koyoko1127 |
I want to activate different key codes by long-press and short-press
It is an operation that is not found in a normal PC keyboard, but it is a popular operation in embedded systems.
It can be used for careful operations and infrequent operations.
Thank you for the wonderful environment for me!
The text was updated successfully, but these errors were encountered: