ps2.7 (2010 09)

p
ps2(7) ps2(7)
PS2_KEY_MAKE Set make-only behavior for an individual key.
The key code from scancode set 3 for the individual key is passed as the first
byte in the character buffer addressed by arg. This request can be made
when the keyboard is using any scancode set; however, it affects only the
operation of scancode set 3. Because keyboards might be left in a disabled
state after this request, the
PS2_ENABLE request should be performed
after PS2_KEY_MAKE.
PS2_KEY_MKBRK
Set make/break for an individual key.
The key code from scancode set 3 for the individual key is passed as the first
byte in the character buffer addressed by arg. Make/break behavior will be
set for this key. This request can be made when the keyboard is using any
scancode set; however, it affects only the operation of scancode set 3.
Because keyboards might be left in a disabled state after this request, the
PS2_ENABLE request should be performed after PS2_KEY_MKBRK
.
PS2_INDICATORS
Set the state of keyboard indicators, Num Lock, Caps Lock, and Scroll Lock,
according to the value passed in the first byte of the character buffer
addressed by arg.
The indicators are bit-mapped as follows:
NONE_LED No indicators active
CAPS_LED Caps Lock indicator active
NUM_LED Num Lock indicator active
SCROLL_LED Scroll Lock indicator active
PS2_RATEDELAY Set the rate and delay for all typematic keys by specifying the value passed
as the first byte in the character buffer addressed by arg.
Bits zero through four give the rate. Bits five and six give the delay. Bit
seven (the most significant bit) is unused and should be set to zero. The
delay in milliseconds is determined by the following equation, where X is the
numeric value of bits five through six:
delay
= (1+X) * 250 (+| 20%)
The period (interval from one output key code to the next) in seconds is
determined by the following equation, where Y is the numeric value of bits
zero through two, and Z is the numeric value of bits three through four:
period
= (8+Y) * (2ˆZ) * 0.00417 (+| 20%)
The typematic rate (expressed in make codes per second) is one for each
period using the above equation. The default typematic rate is 10.9 charac-
ters per second. The default delay is 500 milliseconds.
Mouse-Specific ioctl() Requests
PS2_SAMPLERATE Set the mouse sampling rate used in stream mode by specifying the value
passed as the first byte in the character buffer addressed by arg.
Seven specific rates are supported:
SAMPLE_10 10 reports/second maximum
SAMPLE_20 20 reports/second maximum
SAMPLE_40 40 reports/second maximum
SAMPLE_60 60 reports/second maximum
SAMPLE_80 80 reports/second maximum
SAMPLE_100 100 reports/second maximum
SAMPLE_200 200 reports/second maximum
The default rate is 100 reports/second maximum. This request updates the
mouse sampling rate only in stream mode. If the mouse is in prompt mode,
this request is ignored.
PS2_PROMPTMODE Put mouse into prompt mode.
In prompt mode, the mouse updates its internal values due to movement or
button presses, but issues reports only in response to the
PS2_REPORT
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010