()
| 239 | } |
| 240 | |
| 241 | public boolean trigger() { |
| 242 | if (isEnabled() && command != null) { |
| 243 | FEvent fEvent = new FEvent(this, FEventType.TAP); |
| 244 | if (Forge.hasGamepad()) { |
| 245 | press(0, 0); |
| 246 | Timer.schedule(new Timer.Task() { |
| 247 | @Override |
| 248 | public void run() { |
| 249 | command.handleEvent(fEvent); |
| 250 | release(0,0); |
| 251 | } |
| 252 | }, 0.10f); |
| 253 | return true; |
| 254 | } |
| 255 | command.handleEvent(fEvent); |
| 256 | return true; |
| 257 | } |
| 258 | return false; |
| 259 | } |
| 260 | |
| 261 | @Override |
| 262 | public void draw(Graphics g) { |
no test coverage detected