Advertisement
Guest User

LogitechLcd.h

a guest
Jan 1st, 2014
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.76 KB | None | 0 0
  1. //
  2. // Logitech Gaming LCD SDK
  3. //
  4. // Copyright (C) 2011-2012 Logitech. All rights reserved.
  5. //
  6.  
  7. #pragma once
  8. #include <Windows.h>
  9.  
  10. #define LOGI_LCD_TYPE_MONO    (0x00000001)
  11. #define LOGI_LCD_TYPE_COLOR   (0x00000002)
  12.  
  13.  
  14. #define LOGI_LCD_MONO_BUTTON_0 (0x00000001)
  15. #define LOGI_LCD_MONO_BUTTON_1 (0x00000002)
  16. #define LOGI_LCD_MONO_BUTTON_2 (0x00000004)
  17. #define LOGI_LCD_MONO_BUTTON_3 (0x00000008)
  18.  
  19. #define LOGI_LCD_COLOR_BUTTON_LEFT   (0x00000100)
  20. #define LOGI_LCD_COLOR_BUTTON_RIGHT  (0x00000200)
  21. #define LOGI_LCD_COLOR_BUTTON_OK     (0x00000400)
  22. #define LOGI_LCD_COLOR_BUTTON_CANCEL (0x00000800)
  23. #define LOGI_LCD_COLOR_BUTTON_UP     (0x00001000)
  24. #define LOGI_LCD_COLOR_BUTTON_DOWN   (0x00002000)
  25. #define LOGI_LCD_COLOR_BUTTON_MENU   (0x00004000)
  26.  
  27. const int LOGI_LCD_MONO_WIDTH = 160;
  28. const int LOGI_LCD_MONO_HEIGHT = 43;
  29.  
  30. const int LOGI_LCD_COLOR_WIDTH = 320;
  31. const int LOGI_LCD_COLOR_HEIGHT = 240;
  32.  
  33. bool LogiLcdInit(wchar_t* friendlyName, int lcdType);
  34. bool LogiLcdIsConnected(int lcdType);
  35. bool LogiLcdIsButtonPressed(int button);
  36. void LogiLcdUpdate();
  37. void LogiLcdShutdown();
  38.  
  39. // Monochrome LCD functions
  40. bool LogiLcdMonoSetBackground(BYTE monoBitmap[]);
  41. bool LogiLcdMonoSetText(int lineNumber, wchar_t* text);
  42.  
  43. // Color LCD functions
  44. bool LogiLcdColorSetBackground(BYTE colorBitmap[]);
  45. bool LogiLcdColorSetTitle(wchar_t* text, int red = 255, int green = 255, int blue = 255);
  46. bool LogiLcdColorSetText(int lineNumber, wchar_t* text, int red = 255, int green = 255, int blue = 255);
  47.  
  48. //UDK functions, use this only if working with UDK
  49. int LogiLcdColorSetBackgroundUDK(BYTE partialBitmap[], int arraySize);
  50. int LogiLcdColorResetBackgroundUDK();
  51. int LogiLcdMonoSetBackgroundUDK(BYTE partialBitmap[], int arraySize);
  52. int LogiLcdMonoResetBackgroundUDK();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement