CmPlatformWndProc.h 631 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "CmPlatform.h"
  3. #include "CmWin32Defs.h"
  4. namespace CamelotFramework
  5. {
  6. class CM_EXPORT PlatformWndProc : public Platform
  7. {
  8. public:
  9. static LRESULT CALLBACK _win32WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  10. private:
  11. static bool isShiftPressed;
  12. static bool isCtrlPressed;
  13. static LRESULT translateNonClientAreaType(NonClientAreaBorderType type);
  14. static void getMouseData(HWND hWnd, WPARAM wParam, LPARAM lParam, Int2& mousePos, OSPositionalInputButtonStates& btnStates);
  15. static bool getCommand(unsigned int virtualKeyCode, InputCommandType& command);
  16. };
  17. }