adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] Release_0-3-1 79418df 227/237: ADDED Ente


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] Release_0-3-1 79418df 227/237: ADDED Enter as alternative 'Action' key
Date: Mon, 25 Jul 2016 18:15:15 +0000 (UTC)

tag: Release_0-3-1
commit 79418df6e4855cc9ac7f89f63a98212046aa3321
Author: adondev <adondev>
Commit: adondev <adondev>

    ADDED Enter as alternative 'Action' key
---
 PLAYING                                             |    7 ++-----
 scripts/schedules/mapcharacters/keyboard_control.py |    3 ++-
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/PLAYING b/PLAYING
index f1065e7..1110e9e 100644
--- a/PLAYING
+++ b/PLAYING
@@ -30,16 +30,13 @@ Arrow keys:     - Choosing options in the game menus
                 - Moving you chracter around the map
                 - Choosing responses during dialoges
 
-Space:         - Selecting an option in the game menus
+Space/Enter:    - Selecting an option in the game menus
                 - Talking to a character (when you are facing them)
                            - Selecting a response during dialogues
                            - Examining items in and round the inn (only works
                              in some places!)
 
-Enter:         - Selecting an option in the game menus
-                           - Selecting a response during dialogues
-
-Page Up/Down:   - Scrolling up/down in dialogues
+Page Up/Down:   - Scrolling up/down in dialogues/windows
 
 Escape          - Skipping cutscenes (like the intro)
                 - Bringing up the game menu
diff --git a/scripts/schedules/mapcharacters/keyboard_control.py 
b/scripts/schedules/mapcharacters/keyboard_control.py
index f08f42a..536a799 100755
--- a/scripts/schedules/mapcharacters/keyboard_control.py
+++ b/scripts/schedules/mapcharacters/keyboard_control.py
@@ -28,7 +28,8 @@ class keyboard_control:
             self.disable_veranda_hack ()
         
         # -- react to the action key
-        if adonthell.input_has_been_pushed (adonthell.SDLK_SPACE):
+        if adonthell.input_has_been_pushed (adonthell.SDLK_SPACE) or \
+                  adonthell.input_has_been_pushed (adonthell.SDLK_RETURN):
             # -- see whether a character(/object) is next to the player
             p = self.myself.whosnext ()
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]