* Returns the relative X position of the * mouse cursor relative to the surface that * triggered the action, corrected for screen scaling. * @return Mouse's relative X position. */
| 154 | * @return Mouse's relative X position. |
| 155 | */ |
| 156 | double Action::getRelativeXMouse() const |
| 157 | { |
| 158 | if (_mouseX == -1) |
| 159 | return -1; |
| 160 | return _mouseX - _surfaceX * _scaleX; |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * Returns the relative X position of the |
no outgoing calls
no test coverage detected