introduces ios support? still needs metal

This commit is contained in:
2025-06-29 01:21:55 +03:00
parent af4f0c3cad
commit cdeaac7c0c
79 changed files with 2176 additions and 1349 deletions

View File

@@ -3,6 +3,11 @@
#include "tier0/platform.h"
//-----------------------------------------------------------------------------
// Keys include mouse buttons and gamepad buttons as well.
// KEY_NONE and AXIS_NONE are garbage, so don't rely on them
//-----------------------------------------------------------------------------
enum EKeyEventType
{
KEY_EVENT_TYPE_DOWN,
@@ -81,13 +86,24 @@ enum EInputKey
KEY_X,
KEY_Y,
KEY_Z,
KEY_MAX,
KEY_NUM_KEYS = KEY_MAX - 1,
};
enum EInputAxis
{
AXIS_NONE,
AXIS_MOUSE_X,
AXIS_MOUSE_Y,
AXIS_MOUSE_SCROLL,
AXIS_MAX,
AXIS_NUM_AXIS = AXIS_MAX - 1,
};
enum EMouseMode
{
MOUSE_MODE_GAME,
MOUSE_MODE_MENU,F
};
interface IInput
@@ -95,9 +111,12 @@ interface IInput
public:
static void Init( void );
static void KeyEvent( EInputKey key, EKeyEventType event );
static void AxisEvent( unsigned char axis, float fX, float fY );
static void AxisEvent( EInputAxis axis, float fValue );
static void SetMouseMode( EMouseMode mode );
static void Frame( void );
static void Deinit( void );
};
extern float g_fAxisValues[AXIS_NUM_AXIS];
#endif