| 259 | } |
| 260 | |
| 261 | void Entry::HandleMouseButtonEvent( sf::Mouse::Button button, bool press, int x, int /*y*/ ) { |
| 262 | if( !press || !IsMouseInWidget() ) { |
| 263 | return; |
| 264 | } |
| 265 | |
| 266 | if( button != sf::Mouse::Button::Left ) { |
| 267 | // TODO: Maybe some more support for right clicking in the future. |
| 268 | return; |
| 269 | } |
| 270 | |
| 271 | GrabFocus(); |
| 272 | SetCursorPosition( GetPositionFromMouseX( x ) ); |
| 273 | } |
| 274 | |
| 275 | void Entry::HandleUpdate( float seconds ) { |
| 276 | if( !HasFocus() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected