Class MouseSimulated
- Inheritance
-
Mouse
Simulated
- Implements
- Inherited Members
- Extension Methods
Constructors
MouseSimulated(InputSourceSimulated)
Parameters
source
InputSource Simulated
Properties
Id
The unique identifier of this device
Property Value
IsPositionLocked
Gets or sets if the mouse is locked to the screen
Property Value
MouseState
Property Value
Name
The name of the device
Property Value
PointerState
Property Value
Source
The input source the device belongs to.
Property Value
Methods
LockPosition(bool)
Locks the mouse position to the screen
Parameters
forceCenter
boolForce the mouse position to the center of the screen
SetPosition(Vector2)
Attempts to set the pointer position, this only makes sense for mouse pointers
Parameters
position
Vector2
SimulateMouseDown(MouseButton)
Parameters
button
MouseButton
SimulateMouseUp(MouseButton)
Parameters
button
MouseButton
SimulateMouseWheel(float)
Parameters
wheelDelta
float
SimulatePointer(PointerEventType, Vector2, int)
Parameters
pointerEventType
PointerEvent Type position
Vector2id
int
UnlockPosition()
Unlocks the mouse position if it was locked
Update(List<InputEvent>)
Updates the input device, filling the list inputEvents
with input events that were generated by this device this frame
Parameters
inputEvents
List<InputEvent >A list that gets filled with input events that were generated since the last frame
Remarks
Input devices are always updated after their respective input source