summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/palmunits/src/graffitishift.pp
blob: 8667b37d3e780b01bc47ad5bc81f97bbc859516e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{$MACRO ON}

(******************************************************************************
 *
 * Copyright (c) 1995-2000 Palm, Inc. or its subsidiaries.
 * All rights reserved.
 *
 * File: GraffitiShift.h
 *
 * Release: Palm OS SDK 4.0 (63220)
 *
 * Description:
 *        This file defines Griffiti shift state indicator routines.
 *
 * History:
 *    Aug 24, 1995   Created by Art Lamb
 *      mm/dd/yy   initials - brief revision comment
 *
 *****************************************************************************)

unit graffitishift;

interface

uses palmos, coretraps;

// Graffiti lock flags
const
  glfCapsLock = $01;
  glfNumLock  = $02;

type
  GsiShiftState = Enum;

const
  gsiShiftNone = 0;                             // no indicator
  gsiNumLock = Succ(gsiShiftNone);              // numeric lock
  gsiCapsLock = Succ(gsiNumLock);               // capital lock
  gsiShiftPunctuation = Succ(gsiCapsLock);      // punctuation shift
  gsiShiftExtended = Succ(gsiShiftPunctuation); // extented punctuation shift
  gsiShiftUpper = Succ(gsiShiftExtended);       // alpha upper case shift
  gsiShiftLower = Succ(gsiShiftUpper);          // alpha lower case

procedure GsiInitialize; syscall sysTrapGsiInitialize;

procedure GsiSetLocation(const x, y: Int16); syscall sysTrapGsiSetLocation;

procedure GsiEnable(const enableIt: Boolean); syscall sysTrapGsiEnable;

function GsiEnabled: Boolean; syscall sysTrapGsiEnabled;

procedure GsiSetShiftState(const lockFlags, tempShift: UInt16); syscall sysTrapGsiSetShiftState;

implementation

end.