Updates for bazel on windows.

This commit is contained in:
2023-05-17 14:26:26 -07:00
parent a8c0ef05fb
commit 9e8f04e9b4
84 changed files with 2789 additions and 5836 deletions

View File

@@ -17,15 +17,21 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "ctrls.h"
// clang-format off
#include "ctrls.h"
#include "strmanip.h"
using std::endl;
using std::ostream;
using std::string;
// clang-foramt on
namespace OpenArena {
namespace {
using std::endl;
using std::ostream;
using std::string;
} // End namespace
void ControlScheme::LoadDefaultControlScheme() {
UnBindAll();
Bind(OpenArena::KEY_LBUTTON, ACTION_FORWARD);
Bind(OpenArena::KEY_RBUTTON, ACTION_BACKWARD);
Bind(OpenArena::KEY_LEFT, ACTION_LOOKLEFT);
@@ -184,4 +190,12 @@ bool ControlScheme::IsBound(OpenArena::Keys key, Action action) {
return false;
}
ControlScheme::Action ControlScheme::GetAction(OpenArena::Keys key) {
return keyActions[key];
}
ControlScheme::ControlScheme(){
UnBindAll();
}
} // End namespace OpenArena