Platform_Win32_Input Class Reference

Public Member Functions | |
| Platform_Win32_Input (Platform_Win32_OS *os) | |
| virtual | ~Platform_Win32_Input () |
| virtual const Platform_Input_KeyboardDevice * | GetKeyboardDevice () |
| virtual const Platform_Input_MouseDevice * | GetMouseDevice () |
| virtual int | CreateMouseCursor (int width, int height, int hotspotX, int hotspotY, unsigned short *colorData, unsigned char *alphaData) |
| virtual void | SetMouseCursor (int handle) |
| virtual void | SetDefaultMouseCursor () |
| virtual void | OnCustomEvent (const char *eventId, void *userData) |
Detailed Description
Definition at line 27 of file Platform_Win32_Input.h.
Constructor & Destructor Documentation
| Platform_Win32_Input::Platform_Win32_Input | ( | Platform_Win32_OS * | os | ) |
Definition at line 17 of file Platform_Win32_Input.cpp.
| Platform_Win32_Input::~Platform_Win32_Input | ( | ) | [virtual] |
Definition at line 30 of file Platform_Win32_Input.cpp.
Member Function Documentation
| const Platform_Input_KeyboardDevice * Platform_Win32_Input::GetKeyboardDevice | ( | ) | [virtual] |
Retrieves the keyboard device instance. This pointer is owned and managed by Platform_Input, and should not be deleted by the caller.
- Returns:
- The keyboard device for the platform
Implements Platform_Input.
Definition at line 82 of file Platform_Win32_Input.cpp.
| const Platform_Input_MouseDevice * Platform_Win32_Input::GetMouseDevice | ( | ) | [virtual] |
Retrieves the mouse device instance. This pointer is owned and managed by Platform_Input, and should not be deleted by the caller.
- Returns:
- The mouse device for the platform
Implements Platform_Input.
Definition at line 95 of file Platform_Win32_Input.cpp.
| int Platform_Win32_Input::CreateMouseCursor | ( | int | width, | |
| int | height, | |||
| int | hotspotX, | |||
| int | hotspotY, | |||
| unsigned short * | colorData, | |||
| unsigned char * | alphaData | |||
| ) | [virtual] |
Creates a system mouse cursor from the specified bitmap data. Different systems might support different number of colors and transparency, so it is not guaranteed that the cursor will look identical to to the specified bitmap data.
- Returns:
- A handle to the new cursor, to be used with SetMouseCursor or 0 if it couldn't be created
Implements Platform_Input.
Definition at line 109 of file Platform_Win32_Input.cpp.
| void Platform_Win32_Input::SetMouseCursor | ( | int | handle | ) | [virtual] |
Tells the system to use the specified mouse cursor, created through a call to CreateMouseCursor. Can also be used to hide the mouse cursor, by passing a value of 0 for handle.
Implements Platform_Input.
Definition at line 181 of file Platform_Win32_Input.cpp.
| void Platform_Win32_Input::SetDefaultMouseCursor | ( | ) | [virtual] |
Tells the system to use the default mouse cursor for the system (the standard arrow for windows)
Implements Platform_Input.
Definition at line 198 of file Platform_Win32_Input.cpp.
| void Platform_Win32_Input::OnCustomEvent | ( | const char * | eventId, | |
| void * | userData | |||
| ) | [virtual] |
Receives a custom event, sent from a system by calling Platform::SendEvent_CustomEvent
Reimplemented from PlatformEventListener.
Definition at line 55 of file Platform_Win32_Input.cpp.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
