sculpto
Public Member Functions | Protected Member Functions | List of all members
scl::windows_input_system Class Reference

#include <windows_input.h>

Inheritance diagram for scl::windows_input_system:
scl::input_system

Public Member Functions

void Init (window_handle *WindowHandle, int *MouseWheel)
 

Protected Member Functions

void SelfResponse () override
 
virtual void SelfResponse ()
 

Additional Inherited Members

- Static Public Member Functions inherited from scl::input_system
static int GetMousePosX ()
 
static int GetMousePosY ()
 
static int GetMousePosZ ()
 
static int GetMousePosDeltaX ()
 
static int GetMousePosDeltaY ()
 
static int GetMousePosDeltaZ ()
 
static bool GetKey (keycode Index)
 
static bool GetKeyOld (keycode Index)
 
static bool GetKeyClick (keycode Index)
 
static void Response ()
 
static shared< input_system > & Get ()
 
static unique< input_systemCreate ()
 
- Protected Attributes inherited from scl::input_system
mouse_data Mouse
 
keyboard_data Keyboard
 

Detailed Description

Windows specific input system class.

Definition at line 16 of file windows_input.h.

Member Function Documentation

◆ Init()

void scl::windows_input_system::Init ( window_handle WindowHandle,
int *  MouseWheel 
)
  • Windows specific input system initialisation function.
Parameters
WindowHandle- handle of window using interacting with.
MouseWheel- reference to value representing mouse wheel state (need since it can't be obtaint by WinMM lib.)

Definition at line 88 of file windows_input.cpp.

89{
90 this->WindowHandle = WindowHandle;
91 this->Wheel = MouseWheel;
92}

◆ SelfResponse()

void scl::windows_input_system::SelfResponse ( )
overrideprotectedvirtual
  • Read all available human devies function.
Parameters
None.
Returns
None.

Reimplemented from scl::input_system.

Definition at line 94 of file windows_input.cpp.

95{
96 if (WindowHandle == nullptr || Wheel == nullptr) return;
97
98 MouseRead();
99 KeyboardRead();
100}

The documentation for this class was generated from the following files: