OSDN Git Service

Removed 'k' engine shutdown key assignment
authorryan <>
Fri, 25 Dec 2015 23:52:10 +0000 (23:52 +0000)
committerryan <>
Fri, 25 Dec 2015 23:52:10 +0000 (23:52 +0000)
codeblocks/wxsmith/KeyDialog.wxs
readme.txt
src/frontend/keydialog.cpp
src/frontend/skyscraper.cpp

index 73f9217..943f593 100644 (file)
@@ -9,7 +9,7 @@
                        <orient>wxVERTICAL</orient>
                        <object class="sizeritem">
                                <object class="wxTextCtrl" name="ID_TEXTCTRL1" variable="TextCtrl1" member="yes">
-                                       <value>Simulator Keyboard and Mouse Controls from the readme.txt file:&#x0A;&#x0A;--- Keyboard ---&#x0A;&#x0A;On a Mac, the Control key is the Command key (to the right of the Option key), and Alt is the Option key&#x0A;&#x0A;W or Up Arrow - move forwards&#x0A;S or Down Arrow - move backwards&#x0A;A or Left Arrow - move left&#x0A;D or Right Arrow - move right&#x0A;PgUp or P - Look upwards&#x0A;PgDown or L - Look downwards&#x0A;Space - Jump&#x0A;Home or O - Float upwards (or jump if collision detection is on)&#x0A;End or K - Float downwards (or crouch if collision detection is on)&#x0A;F2 - print render statistics on console&#x0A;F3 - Reset camera rotation and zoom to default&#x0A;F4 - Enable/disable wireframe mode&#x0A;F5 - Freelook (mouse look) mode&#x0A;F6 - Full camera reset (respawn)&#x0A;F7 - Show colliders&#x0A;F10 - Fullscreen mode&#x0A;F11 - Take screenshot&#x0A;F12 - Show control panel&#x0A;Shift - Run (hold down with other keys)&#x0A;Control - Walk slowly (hold down with other keys)&#x0A;Alt + arrow keys - Strafe&#x0A;Alt + PgUp/P - Spin right&#x0A;Alt + PgDown/L - Spin left&#x0A;Plus or ] - Zoom in (decrease FOV angle)&#x0A;Minus or [ - Zoom out (increase FOV angle)&#x0A;Esc - exit to main menu&#x0A;V - Toggle noclip mode (gravity and collisions off)&#x0A;B - Binoculars mode (hold down), and reset FOV to default&#x0A;C - Pick up object (physics-enabled models)&#x0A;; - (semicolon) - Load an additional building&#x0A;k - Shut down (unload) current building&#x0A;1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)&#x0A;Ctrl-R - Reload current building&#x0A;Ctrl-Alt-C - crash program (throw exception), used for testing handlers&#x0A;&#x0A;--- Mouse actions ---&#x0A;-the selection order of controls (buttons and switches can be reversed by right-clicking them&#x0A;-elevator shaft doors can be manually opened and closed by holding down the Shift key and clicking on them - note that this only works when the interlocks are released, which can be done in the elevator editor by clicking &quot;Set&quot; next to &quot;Interlocks&quot; on the related elevator&#x0A;-polygons (wall/floor sides) and other objects can be deleted by holding down both Ctrl and Alt, and clicking on the object&#x0A;-doors, controls/buttons, and call buttons can be locked/unlocked by holding down both the Ctrl and Shift keys while clicking on the side to lock, if you have the associated key&#x0A;-call button light status can be changed by shift-clicking the related button&#x0A;</value>
+                                       <value>Simulator Keyboard and Mouse Controls from the readme.txt file:&#x0A;&#x0A;--- Keyboard ---&#x0A;&#x0A;On a Mac, the Control key is the Command key (to the right of the Option key), and Alt is the Option key&#x0A;&#x0A;W or Up Arrow - move forwards&#x0A;S or Down Arrow - move backwards&#x0A;A or Left Arrow - move left&#x0A;D or Right Arrow - move right&#x0A;PgUp or P - Look upwards&#x0A;PgDown or L - Look downwards&#x0A;Space - Jump&#x0A;Home or O - Float upwards (or jump if collision detection is on)&#x0A;End or K - Float downwards (or crouch if collision detection is on)&#x0A;F2 - print render statistics on console&#x0A;F3 - Reset camera rotation and zoom to default&#x0A;F4 - Enable/disable wireframe mode&#x0A;F5 - Freelook (mouse look) mode&#x0A;F6 - Full camera reset (respawn)&#x0A;F7 - Show colliders&#x0A;F10 - Fullscreen mode&#x0A;F11 - Take screenshot&#x0A;F12 - Show control panel&#x0A;Shift - Run (hold down with other keys)&#x0A;Control - Walk slowly (hold down with other keys)&#x0A;Alt + arrow keys - Strafe&#x0A;Alt + PgUp/P - Spin right&#x0A;Alt + PgDown/L - Spin left&#x0A;Plus or ] - Zoom in (decrease FOV angle)&#x0A;Minus or [ - Zoom out (increase FOV angle)&#x0A;Esc - exit to main menu&#x0A;V - Toggle noclip mode (gravity and collisions off)&#x0A;B - Binoculars mode (hold down), and reset FOV to default&#x0A;C - Pick up object (physics-enabled models)&#x0A;; - (semicolon) - Load an additional building&#x0A;1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)&#x0A;Ctrl-R - Reload current building&#x0A;Ctrl-Alt-C - crash program (throw exception), used for testing handlers&#x0A;&#x0A;--- Mouse actions ---&#x0A;-the selection order of controls (buttons and switches can be reversed by right-clicking them&#x0A;-elevator shaft doors can be manually opened and closed by holding down the Shift key and clicking on them - note that this only works when the interlocks are released, which can be done in the elevator editor by clicking &quot;Set&quot; next to &quot;Interlocks&quot; on the related elevator&#x0A;-polygons (wall/floor sides) and other objects can be deleted by holding down both Ctrl and Alt, and clicking on the object&#x0A;-doors, controls/buttons, and call buttons can be locked/unlocked by holding down both the Ctrl and Shift keys while clicking on the side to lock, if you have the associated key&#x0A;-call button light status can be changed by shift-clicking the related button&#x0A;</value>
                                        <minsize>600,500</minsize>
                                        <style>wxTE_MULTILINE|wxTE_READONLY</style>
                                </object>
index dd43a7e..c1cb48d 100644 (file)
@@ -117,7 +117,6 @@ V - Toggle noclip mode (gravity and collisions off)
 B - Binoculars mode (hold down), and reset FOV to default
 C - Pick up object (physics-enabled models)
 ; - (semicolon) - Load an additional building
-k - Shut down (unload) current building
 1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)
 Ctrl-R - Reload current building
 Ctrl-Alt-C - Crash program (throw exception) - used for testing handlers
index b7d61dc..efd36e6 100644 (file)
@@ -47,7 +47,7 @@ KeyDialog::KeyDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxS
 
        Create(parent, wxID_ANY, _("Control Reference"), wxDefaultPosition, wxDefaultSize, wxCAPTION|wxDEFAULT_DIALOG_STYLE|wxSYSTEM_MENU|wxRESIZE_BORDER|wxCLOSE_BOX|wxMAXIMIZE_BOX|wxMINIMIZE_BOX, _T("wxID_ANY"));
        BoxSizer1 = new wxBoxSizer(wxVERTICAL);
-       TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Simulator Keyboard and Mouse Controls from the readme.txt file:\n\n--- Keyboard ---\n\nOn a Mac, the Control key is the Command key (to the right of the Option key), and Alt is the Option key\n\nW or Up Arrow - move forwards\nS or Down Arrow - move backwards\nA or Left Arrow - move left\nD or Right Arrow - move right\nPgUp or P - Look upwards\nPgDown or L - Look downwards\nSpace - Jump\nHome or O - Float upwards (or jump if collision detection is on)\nEnd or K - Float downwards (or crouch if collision detection is on)\nF2 - print render statistics on console\nF3 - Reset camera rotation and zoom to default\nF4 - Enable/disable wireframe mode\nF5 - Freelook (mouse look) mode\nF6 - Full camera reset (respawn)\nF7 - Show colliders\nF10 - Fullscreen mode\nF11 - Take screenshot\nF12 - Show control panel\nShift - Run (hold down with other keys)\nControl - Walk slowly (hold down with other keys)\nAlt + arrow keys - Strafe\nAlt + PgUp/P - Spin right\nAlt + PgDown/L - Spin left\nPlus or ] - Zoom in (decrease FOV angle)\nMinus or [ - Zoom out (increase FOV angle)\nEsc - exit to main menu\nV - Toggle noclip mode (gravity and collisions off)\nB - Binoculars mode (hold down), and reset FOV to default\nC - Pick up object (physics-enabled models)\n; - (semicolon) - Load an additional building\nk - Shut down (unload) current building\n1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)\nCtrl-R - Reload current building\nCtrl-Alt-C - crash program (throw exception), used for testing handlers\n\n--- Mouse actions ---\n-the selection order of controls (buttons and switches can be reversed by right-clicking them\n-elevator shaft doors can be manually opened and closed by holding down the Shift key and clicking on them - note that this only works when the interlocks are released, which can be done in the elevator editor by clicking \"Set\" next to \"Interlocks\" on the related elevator\n-polygons (wall/floor sides) and other objects can be deleted by holding down both Ctrl and Alt, and clicking on the object\n-doors, controls/buttons, and call buttons can be locked/unlocked by holding down both the Ctrl and Shift keys while clicking on the side to lock, if you have the associated key\n-call button light status can be changed by shift-clicking the related button\n"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY, wxDefaultValidator, _T("ID_TEXTCTRL1"));
+       TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Simulator Keyboard and Mouse Controls from the readme.txt file:\n\n--- Keyboard ---\n\nOn a Mac, the Control key is the Command key (to the right of the Option key), and Alt is the Option key\n\nW or Up Arrow - move forwards\nS or Down Arrow - move backwards\nA or Left Arrow - move left\nD or Right Arrow - move right\nPgUp or P - Look upwards\nPgDown or L - Look downwards\nSpace - Jump\nHome or O - Float upwards (or jump if collision detection is on)\nEnd or K - Float downwards (or crouch if collision detection is on)\nF2 - print render statistics on console\nF3 - Reset camera rotation and zoom to default\nF4 - Enable/disable wireframe mode\nF5 - Freelook (mouse look) mode\nF6 - Full camera reset (respawn)\nF7 - Show colliders\nF10 - Fullscreen mode\nF11 - Take screenshot\nF12 - Show control panel\nShift - Run (hold down with other keys)\nControl - Walk slowly (hold down with other keys)\nAlt + arrow keys - Strafe\nAlt + PgUp/P - Spin right\nAlt + PgDown/L - Spin left\nPlus or ] - Zoom in (decrease FOV angle)\nMinus or [ - Zoom out (increase FOV angle)\nEsc - exit to main menu\nV - Toggle noclip mode (gravity and collisions off)\nB - Binoculars mode (hold down), and reset FOV to default\nC - Pick up object (physics-enabled models)\n; - (semicolon) - Load an additional building\n1 to 0 - (number keys) - Switch active camera to engine instance number (ex. 2 for building engine 2)\nCtrl-R - Reload current building\nCtrl-Alt-C - crash program (throw exception), used for testing handlers\n\n--- Mouse actions ---\n-the selection order of controls (buttons and switches can be reversed by right-clicking them\n-elevator shaft doors can be manually opened and closed by holding down the Shift key and clicking on them - note that this only works when the interlocks are released, which can be done in the elevator editor by clicking \"Set\" next to \"Interlocks\" on the related elevator\n-polygons (wall/floor sides) and other objects can be deleted by holding down both Ctrl and Alt, and clicking on the object\n-doors, controls/buttons, and call buttons can be locked/unlocked by holding down both the Ctrl and Shift keys while clicking on the side to lock, if you have the associated key\n-call button light status can be changed by shift-clicking the related button\n"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY, wxDefaultValidator, _T("ID_TEXTCTRL1"));
        TextCtrl1->SetMinSize(wxSize(600,500));
        BoxSizer1->Add(TextCtrl1, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
        SetSizer(BoxSizer1);
index e824bbe..cba528c 100644 (file)
@@ -951,7 +951,7 @@ void Skyscraper::GetInput(EngineContext *engine)
                        wait = true;
                }
 
-               //temporary engine switch test
+               //load a new additional building
                if (wxGetKeyState((wxKeyCode)';') && wait == false)
                {
                        Load(SelectBuilding());
@@ -959,15 +959,6 @@ void Skyscraper::GetInput(EngineContext *engine)
                        return;
                }
 
-               //temporary engine kill test
-               if (wxGetKeyState((wxKeyCode)'K') && wait == false)
-               {
-                       EngineContext *engine = engines[GetEngineCount() - 1];
-                       engine->Shutdown();
-                       wait = true;
-                       return;
-               }
-
                //temporary engine selection test
                if (wxGetKeyState((wxKeyCode)'1'))
                {