Page 1 of 1

additional keys in the Kbd Stimulator

Posted: Sun Apr 05, 2015 9:56 pm
by barten6
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

Posted: Wed Apr 08, 2015 10:57 am
by gserrier
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

Re: additional keys in the Kbd Stimulator

Posted: Wed Apr 08, 2015 7:48 pm
by barten6
super- thanks a lot for the clear reply!
P.B.