luna-sysmgr-common
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HostArmQemuKeyFilter Class Reference
Inheritance diagram for HostArmQemuKeyFilter:
[legend]
Collaboration diagram for HostArmQemuKeyFilter:
[legend]

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event)
 

Detailed Description

Event filter which translates PC keyboard keys to simulated hardware device buttons

Member Function Documentation

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
objObject the KeyPress/KeyRelease event was sent to, presumably.
eventEvent 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: