Changes between Initial Version and Version 1 of Ticket #2043


Ignore:
Timestamp:
Jul 24, 2013, 11:46:10 PM (11 years ago)
Author:
lsdh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2043 – Description

    initial v1  
    5151
    5252I could manage to do this changes thanks to Philip` and RedFox| on the IRC, so a big thanks to them.
     53
     54
     55''(to add other keys, you can temporary add the line
     56
     57{{{
     58printf("%d %d\n", ev->ev.type, (int)ev->ev.key.keysym.sym);
     59}}}
     60
     61in 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{{{
     642 224
     653 224
     66}}}
     67
     68The 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''