Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java - Capturing Remote Control inputs ?

  • 03-05-2006 01:30PM
    #1
    Registered Users, Registered Users 2 Posts: 821 ✭✭✭


    Hi,

    I have a Microsoft remote control (the kind that comes with WinXP MediaCenter). I want to capture button presses from it in my Java application. Many of the buttons are captured by a normal KeyListener but some aren't (player controls like play/pause and red/green/yellow/blue colour buttons). Also, most of the ones that are captured just have keyCode() = 0 and keyChar() = '' so I can't determine which button was actually pressed.

    I have been reading up on Xlets, HAVI, MHP, etc but it seems far too complicated and detailed for me and my purposes! Anybody know how I can manipulate KeyListener to distinguish ALL button presses or any other ideas?

    Thanks,
    Brian


Comments

  • Closed Accounts Posts: 261 ✭✭bishopLEN


    Hi,
    Maybe have the key listener listen to all keys, then press each button in order and have you app print the key values of each button press.
    You can then use these values to assign listeners to.


Advertisement