Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
add hotkey value for "move"
Browse files Browse the repository at this point in the history
This is needed now that
2c4fc34
has been implemented
  • Loading branch information
andy5995 committed Jan 28, 2018
1 parent 827c4c2 commit bf5a04b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mk/shared/glestkeys.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; === propertyMap File ===
; === propertyMap File ===

RenderInGamePerformance=`
RenderNetworkStatus=N
ShowFullConsole=M
ShowFullConsole=Z
Screenshot=E
FreeCameraMode=F
ResetCameraMode=space
Expand Down Expand Up @@ -39,6 +39,7 @@ HotKeyRotateUnitDuringPlacement=R
HotKeySelectDamagedUnit=D
HotKeySelectStoreUnit=T
HotKeySelectedUnitsAttack=A
HotKeySelectedUnitsMove=M
HotKeySelectedUnitsStop=S
HotKeyToggleOSMouseEnabled=/
ChatTeamMode=H
Expand All @@ -53,5 +54,5 @@ SaveGame=f11
BookmarkAdd=f2
BookmarkRemove=f3
CameraFollowSelectedUnit=f4
; === propertyMap File ===
; === propertyMap File ===

4 changes: 4 additions & 0 deletions source/glest_game/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ void Gui::hotKey(SDL_KeyboardEvent key) {
else if(isKeyPressed(configKeys.getSDLKey("HotKeySelectedUnitsAttack"),key) == true) {
clickCommonCommand(ccAttack);
}
//else if(key == configKeys.getCharKey("HotKeySelectedUnitsAttack")) {
else if(isKeyPressed(configKeys.getSDLKey("HotKeySelectedUnitsMove"),key) == true) {
clickCommonCommand(ccMove);
}
//else if(key == configKeys.getCharKey("HotKeySelectedUnitsStop")) {
else if(isKeyPressed(configKeys.getSDLKey("HotKeySelectedUnitsStop"),key) == true) {
clickCommonCommand(ccStop);
Expand Down

0 comments on commit bf5a04b

Please sign in to comment.