Inspect/manipulate the position of the mouse pointer
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.
| Signature | hs.mouse.getAbsolutePosition() -> point |
|---|---|
| Type | Function |
| Description | Gets the absolute co-ordinates of the mouse pointer Parameters:
Returns:
Notes:
|
| Signature | hs.mouse.getButtons() -> table |
|---|---|
| Type | Function |
| Description | Returns a table containing the current mouse buttons being pressed at this instant. Parameters: None Returns:
Notes:
|
| Signature | hs.mouse.getCurrentScreen() -> screen or nil |
|---|---|
| Type | Function |
| Description | Gets the screen the mouse pointer is on Parameters:
Returns:
|
| Signature | hs.mouse.getRelativePosition() -> point or nil |
|---|---|
| Type | Function |
| Description | Gets the co-ordinates of the mouse pointer, relative to the screen it is on Parameters:
Returns:
Notes:
|
| Signature | hs.mouse.scrollDirection() -> string |
|---|---|
| Type | Function |
| Description | Gets the system-wide direction of scolling Parameters:
Returns:
|
| Signature | hs.mouse.setAbsolutePosition(point) |
|---|---|
| Type | Function |
| Description | Sets the absolute co-ordinates of the mouse pointer Parameters:
Returns:
Notes:
|
| Signature | hs.mouse.setRelativePosition(point[, screen]) |
|---|---|
| Type | Function |
| Description | Sets the co-ordinates of the mouse pointer, relative to a screen Parameters:
Returns:
|
| Signature | hs.mouse.trackingSpeed([speed]) -> number |
|---|---|
| Type | Function |
| Description | Gets/Sets the current system mouse tracking speed setting Parameters:
Returns:
Notes:
|