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

10
ctrls.h
View File

@@ -17,17 +17,17 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef OpenArena__ctrls_h__
#define OpenArena__ctrls_h__
#if defined HAVE_CONFIG_H
// clang-format off
#include "config.h"
#endif
#include <iostream>
#include <string>
#include "keys.h"
// clang-format on
namespace OpenArena {
class ControlScheme {
public:
@@ -57,11 +57,13 @@ class ControlScheme {
NUM_ACTIONS
};
ControlScheme();
void LoadDefaultControlScheme();
void UnBindAll();
void UnBind(OpenArena::Keys key);
void Bind(OpenArena::Keys key, Action action);
void WriteToStream(std::ostream& output);
Action GetAction(OpenArena::Keys key);
static Action GetAction(const char* actionName);
static const char* GetActionName(Action action);
bool IsBound(OpenArena::Keys key, Action action);