| 53 | |
| 54 | |
| 55 | ''(to add other keys, you can temporary add the line |
| 56 | |
| 57 | {{{ |
| 58 | printf("%d %d\n", ev->ev.type, (int)ev->ev.key.keysym.sym); |
| 59 | }}} |
| 60 | |
| 61 | in the HotkeyInputHandler function of /0ad/source/ps/Hotkey.cpp then compile and lauch the game in a terminal. an integer will be displayed when the key is pressed: |
| 62 | |
| 63 | {{{ |
| 64 | 2 224 |
| 65 | 3 224 |
| 66 | }}} |
| 67 | |
| 68 | The second number (224 here) correspond to the key and this http://www-personal.umich.edu/~bazald/l/api/_s_d_l__keysym_8h.html will give you the SDLK name corresponding). |
| 69 | '' |