additional keys in the Kbd Stimulator

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
barten6
Posts: 51
Joined: Mon Mar 24, 2014 7:24 pm

additional keys in the Kbd Stimulator

Post by barten6 »

how can I add new keystrokes (e.g. page_up and page_down) to the available stimulations in the Keyboard Stimulator?

gserrier
Posts: 71
Joined: Tue Apr 01, 2014 8:22 am

Re: additional keys in the Kbd Stimulator

Post 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

barten6
Posts: 51
Joined: Mon Mar 24, 2014 7:24 pm

Re: additional keys in the Kbd Stimulator

Post by barten6 »

super- thanks a lot for the clear reply!
P.B.

Post Reply