Download Print this page

HP Vectra Technical Reference Manual page 481

Hide thumbs Also See for Vectra:

Advertisement

RS-232 Mouse Driver
0419
0419
80 FE 40
041C
74 3E
041E
80 FE 41
0421
74 39
0423
80 FE 42
0426
74 08
0428
80 FE 43
042B
74 03
042D
84 FE
042F
C3
Absolute movement
movement is r:
~
~
~
o
TYPE • T KC BUTTON
?
aojult 0 sTATt
&
0 TRANSITION
live nlw x pOlition
(OLD - NEW)
Relative movi •
lNEW -
OLD)
I.VI
new )( rlltt
VI
ah. RS_FAIL
bx.ds:D ABS X
bx ,ds :D-ABS-X
bx
- -
dl :D_REL_X, bx
dh, T KC BUTTON
IhorT button isr
cmp
j
I
xc hg
• ub
neg
mov
cmp
dh,T REL08
relat ive 8 bit movlmlnt
i
e
I
h
0
r T r elmo v
I
cmp
dh, T
REL1~
relat ive 16 bi t movement
j e
s h
0
r T r elmo v e
cmp
dh, T ABSof
absolute 8 bit movement
j
e
shorT abs move
cmp
dh, T
ABSl~
absolute 18 bit movement
j e
s ho rT abl_move
If none of the above devicel, then this
is
a bad input device
---------------------------------------
, return RS FAIL
; return to-main driver
b I_move:
mov
ret
page
...........................
We mUlt invert the
Y
axis to put into INDUSTRY STANDARD coordinate space.
MUlt convert
'Y' coordinatl luch that negative movement
11
upward (oPPolite
of HP-HIL definition.)
-- Set BX,CX (x,y ABSOLUTE movement) for 8vent record when done, then pu.
event record to parent driver.
(BX) is 'X' HP-HIL coordinate.
.~~~l.~:.~~~
•••
!.~~~.~~:~~l
D_SIZE_V - ABS_Y(hphil)
PARAMETERS
ON ENTRY.
AH •
F
ISR
DH • D-TYPE
DL • SOURCE
Vector Index
For
B~~~~n Ev:~tn~~;y~~d:hl~~~~lR~~~;~i~eig~fy~~d.d~l~ci~~Tfg~)rd
BX.
Button transition information
bits O..
6.
buttons
bitl7:
0
up transition
1
down transition
For Mo v e me n t Eve n t (
G
IDE v en t Re cor d,
0
TYPE • T REL08, T REL16 ,
-
T-ABS08, or T ABS16).
BX·
AXIS-O IX) Movement in RAW data form-(SIGN EXTENDED,
it
necessary)
CX·
AXIS-l
Y) Movement in RAW data form (SIGN EXTENDED, if necessary)
ON EXIT:
AH • Return Codl (SET BY PARENT Drivlr)
REGISTERS ALTERED: aX,bx.cx
DEF I NI TION MOD I FICAT ION HI STORY
VERSION:
DESCRIPTION OF CHANGES:
A mo v e me n t
0
c cur red.
I f t his was a nab
5 0
1 ute de vic e
t hit mo ved, the n ad jus t the r e la t i vel
0
cat ion fie 1 din the de
sc
rib e ric
0
rd.
If it was a relative device, then adjust the absolute location field
in the describe record.
BX,CX have X,Y movement respectively.
cau5e~ ~~a~~~~~ ~~P~~s~~viI~ ~~;D~v~~rS~~:1ae~~no~a~r~~~~rt~~nWhiCh
the D_STATE and D
~RANSITION
fields will be adjusted and the parent
d r i v e r will be c aIle d i mm e d i a te 1 y .
If a the event WII a movement. this function will update the
absolute position field if the device is a relative device or will
update the relative position field
if
it's an absolute device
It
.u~:~~*l~:~*~~H*l~:*~~~~~r*~~:~:~*l~*~andle
the movement event.
;
NOTE: The POID driver takes HP-HIL 'Y' ads data and translates
it
into INDUSTRY-STANDARD
s~ace
data (flips the Y ax1l).
~~D~~~R~~;Tg~st:i~~w~~~r~~
he upward direction, while
***************************************
page
pgid_h r
p roc
near
--
-
-- ---------------------------
See
if
this was a button event
80 FE 09
74 57
87 lE 0014
2B 1E 0014
F7 DB
89 lE 0018
0414
0414
0417
0430
0430
0434
0438
043A
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
472
Driver Writer's Guide

Advertisement

loading
Need help?

Need help?

Do you have a question about the Vectra and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel