-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSNIIS_Intern.h
31 lines (28 loc) · 1.37 KB
/
SNIIS_Intern.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// @file SNIIS_Intern.h
/// Internal helper functions which are platform-agnostic but should not be part of the public interface
#pragma once
#include "SNIIS.h"
namespace SNIIS
{
/// Platform-agnostic base implementation of InputSystem
class BaseInputSystem : public InputSystem
{
};
/// Platform-agnostic helper functions
struct InputSystemHelper
{
static void AddDevice( Device* dev);
static void DoMouseButton( Mouse* sender, size_t btnIndex, bool isPressed);
static void DoMouseMove( Mouse* sender, float absx, float absy, float relx, float rely);
static void DoMouseWheel(Mouse* sender, float diff);
static void DoKeyboardButton( Keyboard* sender, KeyCode kc, size_t unicode, bool isPressed);
static void DoKeyboardButtonIntern( Keyboard* sender, KeyCode kc, size_t unicode, bool isPressed);
static void DoJoystickAxis( Joystick* sender, size_t axisIndex, float value);
static void DoJoystickButton( Joystick* sender, size_t btnIndex, bool isPressed);
static void DoDigitalEvent( Device* sender, size_t btnIndex, bool isPressed);
static void DoAnalogEvent( Device* sender, size_t axisIndex, float value);
static void SortThisMouseToFront( Mouse* mouse);
static void SortThisKeyboardToFront( Keyboard* keyboard);
static void UpdateChannels( Device* sender, size_t ctrlIndex, bool isAnalog);
};
}