lsdh Posted August 4, 2013 Report Share Posted August 4, 2013 (edited) Where QWERTY keyboards have "1234567890" AZERTY one have symbols like "&é"'(-è!çà".Under Windows, the developers had to made a custom sdl manger that make theses key behave like the QWERTY ones for Hotkeys, but under Linux and Mac OS X, the generic one is used.It is planed to have a GUI interface to configure the hotkeys, but this is not yet implemented, so we have to make it a bit ourself.This will only work with Alpha 15 and later or SVN.First thing (if it is not already done) is to copy the default.cfg file that can be found in:SVN:0ad/binaries/data/config/default.cfgAlpha versions:Linux:/usr/share/[games/]0ad/config/default.cfgOS X:0ad.app/Contents/Resources/data/config/default.cfgand paste it in:Linux:$XDG_CONFIG_HOME/0ad/config/local.cfg (generally ~/.config/0ad/config/local.cfg)OS X:~/Library/Application\ Support/0ad/config/local.cfgNow we can edit this file to configure our hotkeys.Most of the keys are listed in the key.txt file (can be found in the same directory than the default.cfg file).For the ones remaining (é § è ç à), we currently have to use the WorldX keys (§ is only at this place on Belgian layout).On Linux, you should have on French and Belgian layout:é = World73 (or W73)§ = World7 (or W7)è = World72 (or W72)ç = World71 (or W71)à = World64 (or W64)On OSX, French layout:é = World0 (or W0)è = World3 (or W3)ç = World2 (or W2)à = World4 (or W4)Please, share your results and complete the missing informations. There may have other differences.If you need to find the key number, you can find instruction in the #2043.Here is the local.cfg that suit for Belgian layout under Linux (just rename the .zip to be a .cfg): local.zip(If you give it, I can add your file to give more examples). Edited September 1, 2013 by lsdh 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 17, 2013 Report Share Posted August 17, 2013 This for technical discussion. But indeed I lose all my battles without a mouse. And shortcuts in Mac are confused for me. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted August 17, 2013 Report Share Posted August 17, 2013 lsdh, as there doesn't seem a lot of people with a non-qwerty keyboard, could you make a documentation page on the wiki on how to change the shortkeys, what the configuration for belgian azerty on linux is etc... ?I just don't want to forget all that. Quote Link to comment Share on other sites More sharing options...
lsdh Posted September 9, 2013 Author Report Share Posted September 9, 2013 (edited) Documentation page updated: http://trac.wildfiregames.com/wiki/Manual_Settings Edited September 9, 2013 by lsdh 1 Quote Link to comment Share on other sites More sharing options...
chocard Posted October 11, 2015 Report Share Posted October 11, 2015 (edited) hotkey for french keyboard, if it can help someone [hotkey.selection.group.add]0 = "Shift+W64"1 = "Shift+Ampersand"2 = "Shift+W73"3 = "Shift+DoubleQuote"4 = "Shift+SingleQuote"5 = "Shift+LeftParen"6 = "Shift+Minus"7 = "Shift+W72"8 = "Shift+Underscore"9 = "Shift+W71"[hotkey.selection.group.save]0 = "Ctrl+W64"1 = "Ctrl+Ampersand"2 = "Ctrl+W73"3 = "Ctrl+DoubleQuote"4 = "Ctrl+SingleQuote"5 = "Ctrl+LeftParen"6 = "Ctrl+Minus"7 = "Ctrl+W72"8 = "Ctrl+Underscore"9 = "Ctrl+W71"[hotkey.selection.group.select]0 = W641 = Ampersand2 = W733 = DoubleQuote4 = SingleQuote5 = LeftParen6 = Minus7 = W728 = Underscore9 = W71 Edited October 13, 2015 by chocard Quote Link to comment Share on other sites More sharing options...
FeXoR Posted October 18, 2015 Report Share Posted October 18, 2015 Thanks for the documentation Isdh Quote Link to comment Share on other sites More sharing options...
crocmiam Posted December 28, 2015 Report Share Posted December 28, 2015 Is this supposed to work in 0.19?I see these errors: WARNING: Hotkey mapping used invalid key 'Shift+W64'WARNING: Hotkey mapping used invalid key 'Shift+W73'WARNING: Hotkey mapping used invalid key 'Shift+W72'WARNING: Hotkey mapping used invalid key 'Shift+W71'WARNING: Hotkey mapping used invalid key 'Ctrl+W64'WARNING: Hotkey mapping used invalid key 'Ctrl+W73'WARNING: Hotkey mapping used invalid key 'Ctrl+W72'WARNING: Hotkey mapping used invalid key 'Ctrl+W71'WARNING: Hotkey mapping used invalid key 'W64'WARNING: Hotkey mapping used invalid key 'W73'WARNING: Hotkey mapping used invalid key 'W72'WARNING: Hotkey mapping used invalid key 'W71' Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted December 28, 2015 Report Share Posted December 28, 2015 Is this supposed to work in 0.19?As said in the ticket linked in the first post (#2043), these W# keys are SDL1.2-specific and aren't present in SDL2. And Alpha 19 is linked with SDL2. There should be some other (presumably better) way to define these shortcuts with SDL2. Quote Link to comment Share on other sites More sharing options...
crocmiam Posted December 28, 2015 Report Share Posted December 28, 2015 (edited) Thanks for digging up the details. I found a recent bug report on SDL's Bugzilla that is related to this issue: https://bugzilla.libsdl.org/show_bug.cgi?id=3188The bug report has not been aknowledged yet (update: there are now some comments on the report). I've seen a workaround in the yquake2 project: https://github.com/yquake2/yquake2/blob/AZERTY-workaround/src/backends/sdl/input.c#L393 Edited December 29, 2015 by crocmiam 1 Quote Link to comment Share on other sites More sharing options...
flemeille Posted May 4, 2020 Report Share Posted May 4, 2020 Hi, can someone provide hotkeys for mac and working with SDL2 ? For example the hotkeys provided by chocard interfere with "Ctrl + Q" to move my units, and add 9 units to group control 9. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.