graffitishift.pp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1995-2000 Palm, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: GraffitiShift.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * This file defines Griffiti shift state indicator routines.
  13. *
  14. * History:
  15. * Aug 24, 1995 Created by Art Lamb
  16. * mm/dd/yy initials - brief revision comment
  17. *
  18. *****************************************************************************)
  19. unit graffitishift;
  20. interface
  21. uses palmos, coretraps;
  22. // Graffiti lock flags
  23. const
  24. glfCapsLock = $01;
  25. glfNumLock = $02;
  26. type
  27. GsiShiftState = Enum;
  28. const
  29. gsiShiftNone = 0; // no indicator
  30. gsiNumLock = Succ(gsiShiftNone); // numeric lock
  31. gsiCapsLock = Succ(gsiNumLock); // capital lock
  32. gsiShiftPunctuation = Succ(gsiCapsLock); // punctuation shift
  33. gsiShiftExtended = Succ(gsiShiftPunctuation); // extented punctuation shift
  34. gsiShiftUpper = Succ(gsiShiftExtended); // alpha upper case shift
  35. gsiShiftLower = Succ(gsiShiftUpper); // alpha lower case
  36. procedure GsiInitialize; syscall sysTrapGsiInitialize;
  37. procedure GsiSetLocation(const x, y: Int16); syscall sysTrapGsiSetLocation;
  38. procedure GsiEnable(const enableIt: Boolean); syscall sysTrapGsiEnable;
  39. function GsiEnabled: Boolean; syscall sysTrapGsiEnabled;
  40. procedure GsiSetShiftState(const lockFlags, tempShift: UInt16); syscall sysTrapGsiSetShiftState;
  41. implementation
  42. end.