client:keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
client:keys [2018/04/01 06:11] – Add internal link to Movement and fix spelling karl | client:keys [2025/04/18 13:09] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
This page is about the **keys** file inside the user's HOME directory **.**[[crossfire]] . | This page is about the **keys** file inside the user's HOME directory **.**[[crossfire]] . | ||
+ | |||
+ | ===== Creation of the Keys file == | ||
When the [[:client]] starts the first time, then there will be no " | When the [[:client]] starts the first time, then there will be no " | ||
- | and **if** the user never would use the bind and [[: | + | and **if** the user never would use the [[: |
then would that file likely never exist there. | then would that file likely never exist there. | ||
Line 14: | Line 16: | ||
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|| |
- | Where the ' | + | # keysyms are defined to work across different OS X-servers, keycodes are \\ |
+ | # X-server/ | ||
+ | # (sun's type 5 for one) have keys with no corresponding keysym.)) | ||
+ | |||
+ | The keynro | ||
+ | if(key-> | ||
+ | | ||
+ | } \\ | ||
+ | else { \\ | ||
+ | snprintf(buf, | ||
+ | } \\ | ||
+ | } )) \\ | ||
- 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 ' | never tried to set this ' | ||
and the **FLAGS** are | and the **FLAGS** are | ||
- | |#define KEYF_NORMAL | + | == Older == |
- | |#define KEYF_FIRE | + | |#define KEYF_NORMAL |0x01^N|// Used in normal mode //| |
- | |#define KEYF_RUN | + | |#define KEYF_FIRE |
- | |#define KEYF_EDIT | + | |#define KEYF_RUN |
- | |#define KEYF_STANDARD | + | |#define KEYF_MODIFIERS |
- | |#define KEYF_ALT | + | |#define KEYF_EDIT |
- | |#define KEYF_META | + | |#define KEYF_STANDARD |
- | |#define KEYF_MODIFIERS | + | |
+ | == Newer == | ||
+ | |#define KEYF_NORMAL | ||
+ | |#define KEYF_FIRE | ||
+ | |#define KEYF_RUN | ||
+ | |#define KEYF_EDIT | ||
+ | |#define KEYF_STANDARD | ||
+ | |#define KEYF_ALT | ||
+ | |#define KEYF_META | ||
+ | |#define KEYF_MODIFIERS | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Special Keybinding Line == | ||
+ | Special key bound lines start with an exclamation mark < | ||
+ | The special commands are : | ||
+ | * altkey0 ( newer clients ) | ||
+ | * altkey1 ( newer clients ) | ||
+ | * commandkey - default bound to Quote **' | ||
+ | * completekey - :?: what does it do :?: | ||
+ | * firekey0 | ||
+ | * firekey1 | ||
+ | * metakey0 ( newer clients ) | ||
+ | * metakey1 ( newer clients ) | ||
+ | * nextkey | ||
+ | * prevkey | ||
+ | * runkey0 | ||
+ | * runkey1 | ||
+ | <WRAP lo>( [While [[#parsing of the keys file]]((keys.c: | ||
+ | |||
+ | ---- | ||
+ | ==== Example Keys File == | ||
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)) |
'' | '' | ||
- | 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 // | ||
<code conf> | <code conf> | ||
Line 117: | Line 162: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ===== Parsing of the Keys file == | ||
+ | |||
+ | When the client starts, it checks for environmental variables \\ | ||
+ | CFCLIENT_LIBDIR and CF_DATADIR . \\ | ||
+ | :!: These variabes are not named " | ||
+ | like CF_CLIENT_LIBDIR and CF_CLIENT_DATADIR :!: | ||
+ | |||
+ | While the CF_DATADIR is used for theme and glade files, \\ | ||
+ | the **CFCLIENT_LIBDIR** is only used to look for a file named **def-keys** , \\ | ||
+ | which is included in the source code, but probably not in pre-packaged \\ | ||
+ | binary archives of OS distributions; | ||
+ | does not automatically install some {prefix}/ | ||
+ | :!: When [[client_compiling|compiling the client]] , a #define CLIENT_LIBDIR may be available to set a default // | ||
+ | While parsing((keys.c: |
client/keys.1522581108.txt.gz · Last modified: (external edit)