User Tools

Site Tools


client:keys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
client:keys [2018/04/01 06:11]
karl Add internal link to Movement and fix spelling
client:keys [2018/04/01 07:56]
karl Add more correct code hints
Line 14: Line 14:
  
 This keys file consists of lines as This keys file consists of lines as
-|KeyName or KeySym|| 0 || String of FLAGS || Command-Line | +|KeyName or KeySym|| ​keynro(0)((# <​keynro>​ will typically be the keycode for that key.  While \\ 
-Where the '​0'​ will be always a '​0'​ \\+# keysyms are defined to work across different OS X-servers, keycodes are \\ 
 +# X-server/​machine specific. Keycodes are only needed because some keyboards \\ 
 +# (sun's type 5 for one) have keys with no corresponding keysym.)) ​|| String of FLAGS || Command-Line | 
 + 
 +The  keynro ​'​0'​ will be always a '​0' ​(( keys.c:​get_key_info() if (save_mode) { \\ 
 +if(key->​keysym == NoSymbol) { \\ 
 + ​snprintf(buf,​ sizeof(buf),​ "​(null) %i %s %s", 0,buff, key->​command);​ \\ 
 +} \\ 
 +else { \\ 
 +snprintf(buf,​ sizeof(buf),​ "%s %i %s %s", gdk_keyval_name(key->​keysym),​ 0, buff, key->​command);​ \\ 
 + } \\ 
 +} )) \\
 - likely because some GTK+ functions probably need some value there, \\ - likely because some GTK+ functions probably need some value there, \\
 never tried to set this '​0'​ manually to something else - \\  never tried to set this '​0'​ manually to something else - \\ 
Line 26: Line 37:
 |#define KEYF_ALT ​       |0x20|// '​L'​ For ALT key modifier //| |#define KEYF_ALT ​       |0x20|// '​L'​ For ALT key modifier //|
 |#define KEYF_META ​      ​|0x40|//​ '​M'​ For Meta key modifier //| |#define KEYF_META ​      ​|0x40|//​ '​M'​ For Meta key modifier //|
-|#define KEYF_MODIFIERS ​ |0x67|// '​A'​ Mask for actual keyboard modifiers, not action modifiers //|+|#define KEYF_MODIFIERS ​ |0x67((includes 01,​02,​04,​20,​40))|// '​A'​ Mask for actual keyboard modifiers, not action modifiers //|
  
 In this example using a GTK-1 client v1.11.0 , \\ In this example using a GTK-1 client v1.11.0 , \\
-the small letter [[#w]] is bound to \\+the small letter [[#w]]((which is not member of the default keys)) ​is bound to \\
 ''​apply -u rod of create earth wall; apply -a rod of create earth wall''​ \\ ''​apply -u rod of create earth wall; apply -a rod of create earth wall''​ \\
-to forcibly apply and ready that item \\ +to forcibly apply and ready that item\\ 
-and the newly created keys file looks as this :+and the newly created keys file looks as this, \\ 
 +including all the Standard Keys to be found in //​client/​common/​def-keys.h// ​:
  
 <code conf> <code conf>
client/keys.txt · Last modified: 2018/04/01 10:14 by karl