Nástroje používateľa

Nástoje správy stránok


blog:odborny:2015-11-23-running_gog_jagged_alliance_2_on_mac_os_x_10.10.5

Rozdiely

Tu môžete vidieť rozdiely medzi vybranou verziou a aktuálnou verziou danej stránky.

Odkaz na tento prehľad zmien

Obojstranná predošlá revízia Predchádzajúca revízia
Nasledujúca revízia
Predchádzajúca revízia
blog:odborny:2015-11-23-running_gog_jagged_alliance_2_on_mac_os_x_10.10.5 [2015/11/23 11:28]
Róbert Toth
blog:odborny:2015-11-23-running_gog_jagged_alliance_2_on_mac_os_x_10.10.5 [2021/02/06 19:38] (aktuálne)
Róbert Toth corrected Xmodmap procedure
Riadok 41: Riadok 41:
  
  
-===== Enabling ''alt'' and ''delete'' key =====+===== Enabling ''alt'', ''end'' and ''delete'' key =====
  
-For some reason, ''alt'' hotkey is not working at all in Jagged Alliance 2 under Mac OS X. To force mapping of ''Option'' key to ''Alt'' key, do the following:+For some reason, ''Option'' key is not working at all in Jagged Alliance 2 under Mac OS X. Instead, ''cmd'' key works as ''alt'', so if there is a game shortcut that requires pressing ''Alt + X'', you actually need to press ''Cmd + X''
 + 
 +This causes some shortcuts to be unusable, because they are reserved for Mac OS X. **Specifically, cheat for scrolling through item list (by using ''Alt + W'') does not work, because ''Cmd + W'' is reserved by system to function as keyboard shortcut to close window.** To force mapping of ''Option'' key to ''Alt'' key, do the following:
   - Open Terminal   - Open Terminal
   - Go to (''cd'') ''Jagged Alliance 2.app/Contents/Resources/game/Jagged Alliance 2.app/Contents/Frameworks''   - Go to (''cd'') ''Jagged Alliance 2.app/Contents/Resources/game/Jagged Alliance 2.app/Contents/Frameworks''
   - Type ''touch .Xmodmap'' (will create .Xmodmap file)   - Type ''touch .Xmodmap'' (will create .Xmodmap file)
   - Type ''open -e .Xmodmap''   - Type ''open -e .Xmodmap''
-  - Paste these lines into file:((This will also map ''Backspace'' key to ''Delete'' key and key left to Backspace to ''End'' key))<code>+  - Paste these lines into file:<code> 
 +keycode 66 = Alt_L Meta_L 
 +keycode 69 = Alt_R Meta_R 
 +clear mod1 
 +add mod1 = Alt_L Alt_R</code> 
 +  - //(optional)// If you also want to map ''Backspace'' key to ''Delete'' key (so you don't have to press ''Fn + Backspace'' to imitate it) and key left to Backspace to ''End'' key (so you don't have to press ''Fn + right arrow'' to imitate it), add also these lines:<code>
 clear Mod2 clear Mod2
 clear control clear control
-keycode 66 = Alt_L 
 keycode 59 = Delete keycode 59 = Delete
 keycode 32 = End keycode 32 = End
-add control = Alt_L 
 add control = Delete add control = Delete
 add control = End</code> add control = End</code>
-  - (optional) In case some of the keys will not function properly, keycodes are probably different on your system. You can find out proper keycodes by running ''xev'' in terminal and pressing needed keys. Complete hotkey names-list is avaliable on [[http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap|Xmodmap keysyms list]]+  - //(optional)// In case some of the keys will not function properly, keycodes are probably different on your system. You can find out proper keycodes by running ''xev -event keyboard'' in terminal and pressing needed keys. Complete hotkey names-list is avaliable on [[http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap|Xmodmap keysyms list]]
   - Save file and play :-)   - Save file and play :-)
  
  
-{{socialshareprivacy2}} +===== (Re)sources ===== 
-{{tag>os-x howto games fresh-install}}+  * [[http://www.columbia.edu/~em36/winekeymap.html|This article]] helped me a lot.
  
 +
 +~~socialite~~
 +{{tag>os-x howto games fresh-install}}
  
 ===== Comments ===== ===== Comments =====
  
 ~~DISQUS~~ ~~DISQUS~~
blog/odborny/2015-11-23-running_gog_jagged_alliance_2_on_mac_os_x_10.10.5.1448274526.txt.gz · Posledná úprava: 2015/11/23 11:28 od Róbert Toth