Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemWin32.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public: | ||||
| * Destructor. | * Destructor. | ||||
| */ | */ | ||||
| ~GHOST_SystemWin32(); | ~GHOST_SystemWin32(); | ||||
| /*************************************************************************************** | /*************************************************************************************** | ||||
| ** Time(r) functionality | ** Time(r) functionality | ||||
| ***************************************************************************************/ | ***************************************************************************************/ | ||||
| GHOST_TUns64 millisSinceStart(__int64 ms) const; | |||||
| /** | /** | ||||
| * This method converts performance counter measurements into milliseconds since the start of the | * This method converts performance counter measurements into milliseconds since the start of the | ||||
| * system process. | * system process. | ||||
| * \return The number of milliseconds since the start of the system process. | * \return The number of milliseconds since the start of the system process. | ||||
| */ | */ | ||||
| GHOST_TUns64 performanceCounterToMillis(__int64 perf_ticks) const; | GHOST_TUns64 performanceCounterToMillis(__int64 perf_ticks) const; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | public: | ||||
| */ | */ | ||||
| static GHOST_TSuccess pushDragDropEvent(GHOST_TEventType eventType, | static GHOST_TSuccess pushDragDropEvent(GHOST_TEventType eventType, | ||||
| GHOST_TDragnDropTypes draggedObjectType, | GHOST_TDragnDropTypes draggedObjectType, | ||||
| GHOST_WindowWin32 *window, | GHOST_WindowWin32 *window, | ||||
| int mouseX, | int mouseX, | ||||
| int mouseY, | int mouseY, | ||||
| void *data); | void *data); | ||||
| /*************************************************************************************** | |||||
| ** Modify tablet API | |||||
| ***************************************************************************************/ | |||||
| /** | |||||
| * Set which tablet API to use. | |||||
| * \param api: Enum indicating which API to use. | |||||
| */ | |||||
| void setTabletAPI(GHOST_TTabletAPI api) override; | |||||
| protected: | protected: | ||||
| /** | /** | ||||
| * Initializes the system. | * Initializes the system. | ||||
| * For now, it just registers the window class (WNDCLASS). | * For now, it just registers the window class (WNDCLASS). | ||||
| * \return A success value. | * \return A success value. | ||||
| */ | */ | ||||
| GHOST_TSuccess init(); | GHOST_TSuccess init(); | ||||
| Show All 28 Lines | protected: | ||||
| * \param mask: The button mask of this event. | * \param mask: The button mask of this event. | ||||
| * \return The event created. | * \return The event created. | ||||
| */ | */ | ||||
| static GHOST_EventButton *processButtonEvent(GHOST_TEventType type, | static GHOST_EventButton *processButtonEvent(GHOST_TEventType type, | ||||
| GHOST_WindowWin32 *window, | GHOST_WindowWin32 *window, | ||||
| GHOST_TButtonMask mask); | GHOST_TButtonMask mask); | ||||
| /** | /** | ||||
| * Creates tablet events from Wintab events. | |||||
| * \param window: The window receiving the event (the active window). | |||||
| */ | |||||
| static void processWintabEvent(GHOST_WindowWin32 *window); | |||||
| /** | |||||
| * Creates tablet events from pointer events. | * Creates tablet events from pointer events. | ||||
| * \param type: The type of pointer event. | * \param type: The type of pointer event. | ||||
| * \param window: The window receiving the event (the active window). | * \param window: The window receiving the event (the active window). | ||||
| * \param wParam: The wParam from the wndproc. | * \param wParam: The wParam from the wndproc. | ||||
| * \param lParam: The lParam from the wndproc. | * \param lParam: The lParam from the wndproc. | ||||
| * \param eventhandled: True if the method handled the event. | * \param eventhandled: True if the method handled the event. | ||||
| */ | */ | ||||
| static void processPointerEvent( | static void processPointerEvent( | ||||
| Show All 27 Lines | protected: | ||||
| * Process special keys (VK_OEM_*), to see if current key layout | * Process special keys (VK_OEM_*), to see if current key layout | ||||
| * gives us anything special, like ! on french AZERTY. | * gives us anything special, like ! on french AZERTY. | ||||
| * \param vKey: The virtual key from #hardKey. | * \param vKey: The virtual key from #hardKey. | ||||
| * \param scanCode: The ScanCode of pressed key (similar to PS/2 Set 1). | * \param scanCode: The ScanCode of pressed key (similar to PS/2 Set 1). | ||||
| */ | */ | ||||
| GHOST_TKey processSpecialKey(short vKey, short scanCode) const; | GHOST_TKey processSpecialKey(short vKey, short scanCode) const; | ||||
| /** | /** | ||||
| * Creates a window size event. | |||||
| * \param window: The window receiving the event (the active window). | |||||
| * \return The event created. | |||||
| */ | |||||
| static GHOST_Event *processWindowSizeEvent(GHOST_WindowWin32 *window); | |||||
| /** | |||||
| * Creates a window event. | * Creates a window event. | ||||
| * \param type: The type of event to create. | * \param type: The type of event to create. | ||||
| * \param window: The window receiving the event (the active window). | * \param window: The window receiving the event (the active window). | ||||
| * \return The event created. | * \return The event created. | ||||
| */ | */ | ||||
| static GHOST_Event *processWindowEvent(GHOST_TEventType type, GHOST_WindowWin32 *window); | static GHOST_Event *processWindowEvent(GHOST_TEventType type, GHOST_WindowWin32 *window); | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||