|
| | Mouse () |
| | Constructs the SDL mouse module with default cursor state.
|
| |
| virtual | ~Mouse () |
| | Releases cached system cursors.
|
| |
| eve::mouse::Cursor * | newCursor (eve::image::ImageData *data, int hotx, int hoty) override |
| | Builds a custom cursor from image pixels with hotspot (hotx, hoty).
|
| |
| eve::mouse::Cursor * | getSystemCursor (std::string cursortype) override |
| | Returns a named system cursor (e.g. "arrow", "ibeam"); may cache.
|
| |
| void | setCursor (eve::mouse::Cursor *cursor) override |
| | Installs a cursor as the active OS cursor.
|
| |
| void | setCursor () override |
| | Installs a cursor as the active OS cursor.
|
| |
| eve::mouse::Cursor * | getCursor () const override |
| | Currently installed cursor, or null for the default.
|
| |
| bool | isCursorSupported () const override |
| | True when the platform supports software/hardware cursors.
|
| |
| double | getX () const override |
| | Cursor X in window logical coordinates.
|
| |
| double | getY () const override |
| | Cursor Y in window logical coordinates.
|
| |
| void | getPosition (double &x, double &y) const override |
| | Writes cursor position in window logical coordinates.
|
| |
| void | setX (double x) override |
| | Warps the cursor X while keeping Y.
|
| |
| void | setY (double y) override |
| | Warps the cursor Y while keeping X.
|
| |
| void | setPosition (double x, double y) override |
| | Warps the cursor to a logical window position.
|
| |
| void | setVisible (bool visible) override |
| | Shows or hides the OS cursor.
|
| |
| bool | isDown (const std::vector< int > &buttons) const override |
| | True if any listed mouse button index is currently down.
|
| |
| bool | isVisible () const override |
| | True when the OS cursor is visible.
|
| |
| void | setGrabbed (bool grab) override |
| | Confines the cursor to the window when grab is true.
|
| |
| bool | isGrabbed () const override |
| | True when cursor grab is active.
|
| |
| bool | setRelativeMode (bool relative) override |
| | Enables relative mouse mode (hidden cursor, motion deltas).
|
| |
| bool | getRelativeMode () const override |
| | True when relative mouse mode is active.
|
| |
| double | getMovementX () override |
| | Pixel delta since the last getMovementX() (also latches Y for getMovementY).
|
| |
| double | getMovementY () const override |
| | Pixel delta latched by the most recent getMovementX(); call X then Y each frame.
|
| |
| | Module_REG (Mouse) |
| |
| float | getWheelX () const |
| | Horizontal scroll from the latest platform pump; event-thread read, non-consuming.
|
| |
| float | getWheelY () const |
| | Vertical scroll from the latest platform pump; event-thread read, non-consuming.
|
| |
| virtual | ~Module () |
| | Module.
|
| |
| virtual std::string | getName () const =0 |
| | Returns the name.
|
| |
SDL mouse backend implementing eve::mouse::Mouse.
在文件 Mouse.h 第 11 行定义.