| 571 | } |
| 572 | |
| 573 | void GuiCanvas::cursorClick(S32 buttonId, bool isDown) |
| 574 | { |
| 575 | InputEventInfo inputEvent; |
| 576 | inputEvent.deviceType = MouseDeviceType; |
| 577 | inputEvent.deviceInst = 0; |
| 578 | inputEvent.objType = SI_BUTTON; |
| 579 | inputEvent.objInst = (InputObjectInstances)(KEY_BUTTON0 + buttonId); |
| 580 | inputEvent.modifier = (InputModifiers)0; |
| 581 | inputEvent.ascii = 0; |
| 582 | inputEvent.action = isDown ? SI_MAKE : SI_BREAK; |
| 583 | inputEvent.fValue = isDown ? 1.0 : 0.0; |
| 584 | |
| 585 | processMouseEvent(inputEvent); |
| 586 | } |
| 587 | |
| 588 | void GuiCanvas::cursorNudge(F32 x, F32 y) |
| 589 | { |
no outgoing calls
no test coverage detected