SilverScreen Solid Modeler

pointer_mode

pointer_mode

Previous topic Next topic  

pointer_mode

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pointer_mode ( int new_mode )

 

int new_mode;// pointer mode number

 

 

 




Synopsis

#include "silver.h"

 

The pointer_mode function sets the mode of operation of the pointing device.

 

 

Parameters

The behavior of the pointing device based on the value of new_mode as described below:

 

r_point

Mode 0 causes the pointing device to be disabled.

 

r_point

Mode 1 causes the pointing device to operate in keystroke mode. Pointer movement is translated into the MULTI_KEY event. When MULTI_KEY is returned, the predefined variables multi_right and multi_down are set to an equivalent number of right and down arrows (which may be negative, indicating either leftward or upward travel). Mode 1 also causes certain events to be translated to keystrokes:

 

Mouse Event

Returned Event

M_LEFT

CRETURN

M_BOTH

ESCAPE

 

r_point

Mode 2 causes mouse events to be returned without translation. Here are the events that may be returned:

 

Event

Description

M_LEFT

left mouse button up

M_RIGHT

right mouse button up

M_CLEFT

CTRL + left mouse button

M_CRIGHT

CTRL + right mouse button

M_BOTH

both mouse buttons

M_DELTA

mouse movement

M_LDOWN

mouse left button down

M_RDOWN

mouse right button down

M_BDOWN

both mouse button down

 

 

 

Return Value

none.

 

 

Comments

pointer events may be retrieved via inchar and nextkey .

 

 

See Also

inchar , nextkey