From: <th...@us...> - 2002-11-20 19:07:55
|
Update of /cvsroot/ro-oslib/OSLib/!OsLib/Source/Core/oslib In directory sc8-pr-cvs1:/tmp/cvs-serv32269/Source/Core/oslib Modified Files: OS.swi Log Message: Added interface to wheel mouse support in RISC OS Select. Index: OS.swi =================================================================== RCS file: /cvsroot/ro-oslib/OSLib/!OsLib/Source/Core/oslib/OS.swi,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** OS.swi 12 Mar 2002 18:26:58 -0000 1.5 --- OS.swi 20 Nov 2002 19:07:50 -0000 1.6 *************** *** 1808,1827 **** SWI OS_Pointer = //RO3.5 ! (NUMBER 0x64 "Gets or sets the currently selected pointer device ! type - see individual reason codes", ABSENT), ! OSPointer_Get = (NUMBER 0x64, ENTRY (R0 # 0 "Gets the currently selected ! pointer device type - RISC O S 3.5+"), EXIT (R0! = ! OS_PointerType: pointer_type)), ! OSPointer_Set = (NUMBER 0x64, ENTRY (R0 # 1 "Sets the currently selected ! pointer device type - RISC O S 3.5+", R1 = OS_PointerType: ! pointer_type), EXIT (R0?)); TYPE ! PointerV_Record = .Struct (.Ref PointerV_Record: next, .Bits: flags, ! OS_PointerType: pointer_type, [30] .Char: name); ! SWI PointerV = (NUMBER 0x34, ENTRY (R9 # &26 "Used to communicate between the ! kernel and a pointer device driver - ! see individual reason codes"), ABSENT), PointerV_Status = --- 1808,1866 ---- SWI OS_Pointer = //RO3.5 ! ( NUMBER 0x64 "Gets or sets the currently selected pointer device ! type - see individual reason codes", ! ABSENT ! ), ! ! OSPointer_Get = ! ( NUMBER 0x64, ! ENTRY ! ( R0 # 0 "Gets the currently selected pointer device ! type - RISC O S 3.5+" ! ), ! EXIT ! ( R0! = OS_PointerType: pointer_type ! ) ), ! ! OSPointer_Set = ! ( NUMBER 0x64, ! ENTRY ! ( R0 # 1 "Sets the currently selected pointer device ! type - RISC O S 3.5+", ! R1 = OS_PointerType: pointer_type ! ), ! EXIT ! ( R0? ! ) ), ! ! OSPointer_ReadAlternatePosition = ! ( NUMBER0x64, ! ENTRY ! ( R0 # 2 "Reads the position of the alternate pointing ! device - RISC O S 4.32+" ! ), ! EXIT ! ( R0 = .Int: xposition, ! R1 = .Int: yposition ! ) ); TYPE ! PointerV_Record = ! .Struct ! ( .Ref PointerV_Record: next, ! .Bits: flags, ! OS_PointerType: pointer_type, ! [30] .Char: name ! ); ! SWI ! PointerV = ! ( NUMBER 0x34, ! ENTRY ! ( R9 # &26 "Used to communicate between the kernel and a pointer ! device driver - see individual reason codes" ! ), ! ABSENT ! ), PointerV_Status = *************** *** 1854,1857 **** --- 1893,1911 ---- R1 = OS_PointerType: pointer_type, R9 # &26 + ) ), + + PointerV_ExtendedStatus = + ( NUMBER 0x34, + ENTRY + ( R0 # 4 "Requests extended status of pointer device - RISC O S 4.32+", + R1 = OS_PointerType: pointer_type, + R9 # &26 + ), + EXIT + ( R2 = .Int: xmove, + R3 = .Int: ymove, + R4 = .Int: xmove_alternate, + R5 = .Int: ymove_alternate, + R6 = .Bits: buttons ) ); *************** *** 3044,3047 **** --- 3098,3111 ---- R2 = .Int: key, R3 = .Int: keyboard_id + ) + ), + + Event_PointerScroll = + ( NUMBER &22, + ENTRY + ( R0 # 21, + R1 # 4 "Pointer scroll - RISC O S 4.32+", + R2 = .Int: xmove, + R3 = .int: ymove ) ); |