NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
Remote Mapping of MCE Remote

 
  • 0 Vote(s) - 0 Average
Remote Mapping of MCE Remote
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,128
Threads: 957
Joined: May 2006
#1
2010-01-07, 08:12 PM
Looking at the wiki http://gbpvr.com/pmwiki/pmwiki.php/Hardw...eyMappings I see that the Clear and Enter keys are duplicates of the Back and OK keys. Can these keys be handled separately via KeyMapping and if so, how would I identify them without changing the Back and OK key functionality.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2010-01-07, 08:15 PM
The OK/Enter keys definitely cant be handled separately. I'm not sure about the 'clear' key. I'll check this a bit later today.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#3
2010-01-07, 08:58 PM
With standard MCE mappings (if I remember correctly), Clear = Esc and Back = Backspace so you should be able to map them separately (probably want to reverse them for GBPVR though).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,128
Threads: 957
Joined: May 2006
#4
2010-01-07, 10:50 PM
Thanks whurslton, they are certainly reversed, backspace would be perfect, especially given the location on the remote Where are those configured for GBPVR?

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#5
2010-01-08, 04:48 AM
My mistake, Back actually sends the "End" key: http://www.mediacenterguides.com/sites/d...putINF.pdf

What is it you are trying to do exactly?
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#6
2010-01-08, 05:15 AM
i guess HIP would be a swear word
but thats what i use
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,128
Threads: 957
Joined: May 2006
#7
2010-01-08, 05:32 AM
whurlston I'm trying to map keys for ML3 for MCE users who don't have the colour keys. There aren't that many free. I think using Back gives me one more option which is all I needed.

Yes, HIP is out of the question as a general solution.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#8
2010-01-08, 06:05 AM (This post was last modified: 2010-01-08, 06:10 AM by whurlston.)
In that case, I would capture the IMenuTask.OnKeyDown() or BaseButtonListUiTask.OnKeyDown() to respond.

Code:
// Override this if using BaseButtonListUiTask
        public bool OnKeyDown(System.Windows.Forms.KeyEventArgs e)
        {
            bool overrideKey = MyOverrideKeyCheck(e.KeyCode);
            if (overrideKey)
            {
                // Do stuff
                HandleKey(e.KeyCode);

                // Return true so GBPVR doesn't handle the keypress as well
                return true;
            }
            else
            {
                // Let GBPVR handle the keypress
                return base.OnKeyDown(e);
            }
        }

You can use e.KeyValue if you want to process as an Integer instead of Windows.Forms.Keys
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#9
2010-01-08, 06:17 AM
Also, by using the above code, you can utilize FF/REW/SKIP and Record keys too since they aren't really needed when you are displaying the plugin. That would give you 5 more keys to use. 6 if you use the Info key.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,128
Threads: 957
Joined: May 2006
#10
2010-01-08, 06:28 AM
I wish ML3 was as simple as that!

FF RW = PageUp/Down for those that don't have Chan Up/Down
Skip Prev = Next and Previous Track in the play list.
Record = Queue Next overloaded as Delete from Playlist.

ML3 doesn't have just one KeyHandler but what I added (and released) was basic.

if (e.KeyCode == System.Windows.Forms.Keys.Back)
{
...
}


Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Remote control example code? drmargarit 4 3,895 2018-04-21, 11:24 PM
Last Post: drmargarit
  API help - remote control greg in kansas 0 2,696 2016-07-04, 03:54 PM
Last Post: greg in kansas
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 34,340 2015-08-20, 05:11 PM
Last Post: sub
  Remote client logout timeout. mvallevand 2 2,593 2014-10-28, 12:55 AM
Last Post: mvallevand
  need win7 user with hip and/or mce remote pBS 5 4,763 2010-02-08, 07:48 AM
Last Post: tm12
  Pocket PC Remote Plugin Tommi 57 18,616 2008-11-08, 01:05 PM
Last Post: UncleJohnsBand
  Controlling an Audio Receiver with the GBPVR remote erik 7 2,802 2008-06-01, 08:31 PM
Last Post: erik
  mapping satellite channels to EPG kainat 26 10,465 2008-02-19, 01:49 PM
Last Post: kainat
  import remote recordings pBS 9 3,691 2007-09-08, 01:02 AM
Last Post: pBS
  Handeling Remote Control Buttons being pressed cgmt 3 1,830 2006-05-12, 11:37 AM
Last Post: cgmt

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode