additional keys in the Kbd Stimulator
additional keys in the Kbd Stimulator
how can I add new keystrokes (e.g. page_up and page_down) to the available stimulations in the Keyboard Stimulator?
Re: additional keys in the Kbd Stimulator
Hi,
To add new stimulations to the keyboard stimulator you need to edit the configuration file you put as a setting of the keyboard stimulator.
This file is formated like this:
Key_name Pressed-stimulation-id Released-stimulation-id
...
Pressed and released stimulation id respectively corresponds to the stimulation generated when you pressed/released the key. You need to put the uint64 value of the stimulation you want to use. The link between stimulation name and id can be found in the file toolkit/include/toolkit/ovtk_defines.h
The Key_name field corresponds to the name of the key you want to use in the gtk formalism. You can find the name in that link http://gtk.php.net/manual/en/appendix.keysyms.php, you just need to remove the prefix Gdk::KEY_ from the symbolic name.
Guillaume
To add new stimulations to the keyboard stimulator you need to edit the configuration file you put as a setting of the keyboard stimulator.
This file is formated like this:
Key_name Pressed-stimulation-id Released-stimulation-id
...
Pressed and released stimulation id respectively corresponds to the stimulation generated when you pressed/released the key. You need to put the uint64 value of the stimulation you want to use. The link between stimulation name and id can be found in the file toolkit/include/toolkit/ovtk_defines.h
The Key_name field corresponds to the name of the key you want to use in the gtk formalism. You can find the name in that link http://gtk.php.net/manual/en/appendix.keysyms.php, you just need to remove the prefix Gdk::KEY_ from the symbolic name.
Guillaume
Re: additional keys in the Kbd Stimulator
super- thanks a lot for the clear reply!
P.B.
P.B.