home *** CD-ROM | disk | FTP | other *** search
- Routine : PROCmouse_wait(n)
- Library : MouseLib
- Purpose : Waits for a specific button or group
- of buttons to be pressed.
- Source : Risc User October 1988 Page 47
- Author : Lee Calcraft
- Parameters:
- n = a real number between 0 and 7
- Dependant Routines:
- None
- Global Variables:
- wx = x coordinate when button(s) were
- pressed
- wy = y coordinate when button(s) were
- pressed
- wz = button(s) pressed
- Notes:
- If the routine is called with n=0 then the
- program will pause until the mouse buffer is
- clear. Buttons are detected by bit value, i.e
- adjust is 1, menu is 2 and select is 4.
- Therefore to detect a condition of all three
- being pressed at the same time the routine
- call would be PROCmouse_wait(7). Any button can
- be detected with PROCmouse_wait(TRUE).
- Routine : PROCmouse_rectangle(l%,b%,w%,h%)
- Library : MouseLib
- Purpose : Constrains the pointer within the
- specified area of the screen
- Source : Acorn User Sep 88
- Author : Chris Adie
- Parameters:
- l% : min x ordinate of rectangle
- b% : min y ordinate of rectangle
- w% : width of rectangle
- h% : height of rectangle
- Dependant Routines:
- None
- Global Variables:
- mouseminx% : =l%
- mouseminy% : =b%
- mousewidth% : =w%
- mouseheight% : =h%
- Notes:
- The global variables allow the resetting of the
- mouse pointer after calling PROCcreatealert()
- to the original values. Ordinates are as
- the MOUSE RECTANGLE command, i.e. bottom left
- corner x and y plus width and height in graphic
- units.
- Routine : PROCmouse_loadpointer(mousedata,file$)
- Library : MouseLib
- Purpose : Loads a new mouse pointer definition
- Source : Risc User October 1988 Page 14
- Author : Barry Christie
- Parameters:
- mousedata = the address of a 400 byte
- parameter block
- file$ = filename of the pointer
- definition
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- No checks are made to ensure that the pointer
- file exists. To actually display the new
- pointer call
- PROCmouse_switchpointer(mousedata,nr) and then
- use the command MOUSE ON (nr). It is assumed
- that the Risc User Pointer Editor has been used
- to create the file.
- Routine : PROCtest_mouse_loadpointer
- Library : MouseLib
- Purpose : Demonstrates the use of
- PROCmouse_loadpointer
- Source : Risc User October 1988 Page 14
- Author : Barry Christie
- Parameters:
- None
- Dependant Routines:
- PROCmouse_loadpointer(blk%,file$)
- PROCmouse_switchpointer(blk%,nr)
- Global Variables:
- mousedata
- Notes:
- None
- Routine : PROCmouse_switchpointer
- Library : MouseLib
- Purpose : Changes the pointer shape
- Source : Risc User October 1988 Page 14
- Author : Barry Christie
- Parameters:
- None
- Dependant Routines:
- PROCmouse_loadpointer(blk%,file$)
- Global Variables:
- None
- Notes:
- The parameter block must have been set up using
- PROCmouse_loadpointer() beforehand. To make the
- new pointer shape appear MOUSE ON (nr) must be
- used. Up to 4 different shapes may be resident
- at any one time, although in this case 4
- parameter blocks would be required.
- Alternatively one block could be used and the
- definitions loaded as required.
- Routine : PROCmouse_dynabox(bx,by,cx,cy)
- Library : MouseLib
- Purpose : Creates a 'dynamic box' on the
- screen which may be moved and
- resized using the mouse
- Source : Risc User October 1988 Page 32
- Author : Barry Christie & Lee Calcraft
- Parameters:
- bx = initial min x coordinate of the box
- by = initial min y coordinate of the box
- cx = initial max x coordinate of the box
- cy = initial max y coordinate of the box
- Dependant Routines:
- PROCmouse_wait(n)
- PROCboxit(mx,my,dx,dy,but1,but2,but3,base)
- PROCmsquare
- Global Variables:
- Not checked!
- Notes
- None
- Routine : PROCtest_mouse_dynabox
- Library : MouseLib
- Purpose : Demonstrates the use of
- PROCmouse_dynabox
- Source : Risc User October 1988 Page 32
- Author : Barry Christie & Lee Calcraft
- Parameters:
- None
- Dependant Routines:
- PROCmouse_wait(n)
- PROCmouse_dynabox(bx,by,cx,cy)
- Global Variables:
- Not checked!
- Notes:
- None
- Routine : FNmouse_checkrectangle(mx,my,destx,
- desty,destw,desth)
- Library : MouseLib
- Purpose : Returns TRUE if the mouse pointer is
- within the specified rectangle.
- Source : Risc User October 1988 Page 46
- Author : David Spencer
- Parameters:
- mx = mouse x coordinate
- my = mouse y coordinate
- destx = min x of rectangle
- desty = min y of rectangle
- destw = width of rectangle
- desth = height of rectangle
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The routine returns TRUE if the mouse ordinates
- given are within the specified rectangle, else
- it returns FALSE. This is useful for non-WIMP
- programs which are imitating icons.
-
-