Event filter which translates PC keyboard keys to simulated hardware device buttons
| bool HostArmQemuKeyFilter::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
inlineprotected |
Translates a KeyPress or KeyRelease event from a keyboard key to a hardware button and posts the translated event to the queue
The keys which are translated are as follows:
- Left arrow key = Previous button
- Right arrow key = Next button
- Home key = Home button
- Escape key = Back button
- End key = Launcher button
- Pause/Break key = Power button
- F6 key = simulate orientation with the top of the screen facing up
- F7 key = simulate orientation with the right of the screen facing up
- F8 key = simulate orientation with the bottom of the screen facing up
- F9 key = simulate orientation with the left of the screen facing up
- Parameters
-
| obj | Object the KeyPress/KeyRelease event was sent to, presumably. |
| event | Event which, if it is a KeyPress or KeyRelease event that we know how to translate, is transleted. |
- Returns
- true if we translated the event, false if we did not.
The documentation for this class was generated from the following file: