mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-07 10:03:29 +08:00
31 lines
610 B
C
31 lines
610 B
C
#ifndef ANALOGCODE_H
|
|
#define ANALOGCODE_H
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
|
|
#include "InputEnums.h"
|
|
|
|
|
|
#define JOYSTICK_AXIS_INTERNAL( _joystick, _axis ) ( JOYSTICK_FIRST_AXIS + ((_joystick) * MAX_JOYSTICK_AXES) + (_axis) )
|
|
#define JOYSTICK_AXIS( _joystick, _axis ) ( (AnalogCode_t)JOYSTICK_AXIS_INTERNAL( _joystick, _axis ) )
|
|
|
|
|
|
enum AnalogCode_t
|
|
{
|
|
ANALOG_CODE_INVALID = -1,
|
|
MOUSE_X = 0,
|
|
MOUSE_Y,
|
|
MOUSE_XY,
|
|
MOUSE_WHEEL,
|
|
|
|
JOYSTICK_FIRST_AXIS,
|
|
JOYSTICK_LAST_AXIS = JOYSTICK_AXIS_INTERNAL(MAX_JOYSTICKS - 1, MAX_JOYSTICK_AXES - 1),
|
|
|
|
ANALOG_CODE_LAST,
|
|
};
|
|
|
|
|
|
#endif |