PS2MOUSEXY

From MCS Wiki AVR
Revision as of 22:24, 11 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Sends mouse movement and button information to the PC.

 

 

Syntax

PS2MOUSEXY X , Y, button

 

 

Remarks

X

The X-movement relative to the current position.

 

The range is –255 to 255.

Y

The Y-movement relative to the current position.

 

The range is –255 to 255.

Button

A variable or constant that represents the button state.

 

0 – no buttons pressed

1- left button pressed

2- right button pressed

4- middle button pressed

 

You can combine these values by adding them. For example, 6 would emulate that the right and middle buttons are pressed.

 

To send a mouse click, you need to send two ps2mouseXY statements. The first must indicate that the button is pressed, and the second must release the button.

 

Ps2mouseXY 0,0,1 ' left mouse pressed

 

PsmouseXY 0,0,0  ' left mouse released

 

The SENDSCAN statement could also be used.

 

 

See also

SENDSCANCONFIG PS2EMU



Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language