Welcome, Guest.
Username: Password: Remember me

TOPIC: Combo KeyCodes ?

Combo KeyCodes ? 10 months 4 weeks ago #1

  • mindu
  • mindu's Avatar
  • Offline
  • Posts: 54
I would like to ask how to set a combo of two keys with virtual keycodes, for example, if I have the following:
toggle = 0x01

and I want it with "0x02" how would it be? everything I tried didn't worked
Last Edit: 10 months 3 weeks ago by mindu.
The administrator has disabled public write access.

Combo KeyCodes ? 10 months 4 weeks ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1392
There are three annotation values called "togglectrl", "toggleshift" and "togglealt". Set them to true and the toggle is only triggered if both them and the key specified via "toggle" are pressed. Example: The following means "Ctrl + Shift + Space":
technique mindu < enabled = true; toggle = 0x20; togglectrl = true; toggleshift = true; togglealt = false; >
Cheers, crosire =)
Last Edit: 10 months 4 weeks ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: mindu

Combo KeyCodes ? 10 months 4 weeks ago #3

  • mindu
  • mindu's Avatar
  • Offline
  • Posts: 54
crosire wrote:
There are three annotation values called "togglectrl", "toggleshift" and "togglealt". Set them to true and the toggle is only triggered if both them and the key specified via "toggle" are pressed. Example: The following means "Ctrl + Shift + Space":
technique mindu < enabled = true; toggle = 0x20; togglectrl = true; toggleshift = true; togglealt = false; >
You are a life-saver, thanks!
The administrator has disabled public write access.