Possible to supress key events like PLAY ? (1 Viewer)

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi there,

is it posible to supress or override the key events ? I looked in the source but could not find a way to block "PLAY" or "STOP" to the g_Player inside my plugin. Has anybody a idea ? I would like to use the "Play" button from the remote different.

kroko
 

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    You should be able to catch those actions:

    override bool OnMessage()

    override void OnAction()

    Actions are sent to your window first (if it's active), if you choose not to transmit them forward (call base), they will not be handled.

    If you're using process plugin, then i think you cannot do that.
     

    kroko

    Portal Pro
    February 4, 2007
    428
    420
    55
    Itzehoe
    Home Country
    Germany Germany
    AW: Possible to supress key events like PLAY ?

    Hi SilentException,

    nice to hear from you ;-)

    I already tried it in "Browse the web". Pushing a button on my remote will fire the action "PLAY"
    I dont call base in OnAction at all. OnMessage nothing happens. The problem is, there are not enough buttons on my remote, so I need these buttons. If I, for example, listen to radio then pressing "Stop" will stop the g_player while browsing the web.

    I think it is only possible to block OnMessage. And I think the remote is quite hard coded in some parts, when you look at the layouts.

    kroko
     

    Users who are viewing this thread

    Top Bottom