[mythtv] Question regarding LIRC support and gContext->getCurrentLocation()
navahogunleg at gmail.com
Thu Jun 1 11:31:55 UTC 2006
Just a little update on the above.
I found some time to try and implement the aforementioned solution
where 'logical identifiers' can be specified in the lircrc file,
handling these as key-presses, so one can use these logical
identifiers to configure key-assignments.
(sample config, green button sends 'irGREEN' identifier to application)
(Note that I have purposely prefixed these with 'ir' as not to
conflict with the normal 'Back', or Left/Right keys.)
The problem I ran into was the fact the I cannot extend QKeyEvent --
this would require changes all over the MythTV code-base (every
QKeyEvent should become a MythKeyEvent, for instance). And I'm not
even sure whether QT allows that at all.
Reading the documentation, I did notice that the QKeyEvent can be
created specifying a Unicode text-representation of the character,
which basically can be any 'free' text. Therefor, this seems a perfect
candidate container for getting the LIRC logic key identifier from the
LircClient- pthread to the main application (i.e. the customEvent
handler of mythmainwindow).
More information about the mythtv-dev