| 96 | } |
| 97 | |
| 98 | bool Window3::OnMouseClick(MouseButton button, MouseState state, int32_t x, int32_t y, uint32_t) |
| 99 | { |
| 100 | if (button == MOUSE_LEFT) |
| 101 | { |
| 102 | if (state == MOUSE_DOWN) |
| 103 | { |
| 104 | mTrackBall.SetActive(true); |
| 105 | mTrackBall.SetInitialPoint(x, mYSize - 1 - y); |
| 106 | } |
| 107 | else |
| 108 | { |
| 109 | mTrackBall.SetActive(false); |
| 110 | } |
| 111 | |
| 112 | return true; |
| 113 | } |
| 114 | |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | bool Window3::OnMouseMotion(MouseButton button, int32_t x, int32_t y, uint32_t) |
| 119 | { |
no test coverage detected