| 585 | } |
| 586 | |
| 587 | void LTable_RowClick(struct LTable* w, int row) { |
| 588 | cc_uint64 now; |
| 589 | LTable_SetSelectedTo(w, row); |
| 590 | now = Stopwatch_Measure(); |
| 591 | |
| 592 | /* double click on row to join */ |
| 593 | if (Stopwatch_ElapsedMS(w->_lastClick, now) < 1000 && row == w->_lastRow) { |
| 594 | Launcher_ConnectToServer(<able_Get(row)->hash); |
| 595 | } |
| 596 | |
| 597 | w->_lastRow = LTable_GetSelectedIndex(w); |
| 598 | w->_lastClick = now; |
| 599 | } |
| 600 | |
| 601 | cc_bool LTable_HandlesKey(int key, struct InputDevice* device) { |
| 602 | return key == device->upButton || key == device->pageUpButton || |
no test coverage detected