* 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. */
| 167 | * @return Mouse's relative X position. |
| 168 | */ |
| 169 | double Action::getRelativeYMouse() const |
| 170 | { |
| 171 | if (_mouseY == -1) |
| 172 | return -1; |
| 173 | return _mouseY - _surfaceY * _scaleY; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Returns the interactive surface that triggered |
no outgoing calls
no test coverage detected