(js: VirtualJoystick)
| 167 | } |
| 168 | |
| 169 | export function drawVirtualJoystick(js: VirtualJoystick): void { |
| 170 | if (!js.active) return; |
| 171 | |
| 172 | const bgColor: Color = { r: 255, g: 255, b: 255, a: 60 }; |
| 173 | const handleColor: Color = { r: 255, g: 255, b: 255, a: 140 }; |
| 174 | |
| 175 | drawCircleLines(js.originX, js.originY, js.radius, bgColor); |
| 176 | drawCircle(js.handleX, js.handleY, js.radius * 0.4, handleColor); |
| 177 | } |
| 178 | |
| 179 | // ============================================================ |
| 180 | // Virtual Button |
nothing calls this directly
no test coverage detected