Skip to content

Commit

Permalink
Extend Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gh0stWalk3r committed Sep 1, 2019
1 parent 623c05f commit 0c74b1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,14 @@ public void GetKeyStatus()
var isCapsLockOn = simulator.InputDeviceState.IsTogglingKeyInEffect(VirtualKeyCode.CAPITAL);
}
```

## Example: Get current mouse position
```csharp
public void GetMousePosition()
{
var simulator = new InputSimulator();

// Gets the mouse position as System.Drawing.Point
var position = simulator.Mouse.Position;
}
```

0 comments on commit 0c74b1f

Please sign in to comment.