home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Albert" data-source="post: 855886" data-attributes="member: 67886"><p>Internally, IR commands are mapped to keys before they are sent through the system.</p><p>To map commands to actions, there are several ways:</p><ul> <li data-xf-list-type="ul">You can add a key mapping for a screen. To do that, there are two ways:<ul> <li data-xf-list-type="ul">Use the <em>KeyBinding</em> XAML element. That control adds an "invisible" key handler which simply executes a command when the configured key is pressed.</li> <li data-xf-list-type="ul">Use the <em>KeyBindingControl</em> XAML element.</li> </ul></li> <li data-xf-list-type="ul">You can add a global key mapping using the SkinEngine's input manager. In method SkinEnginePlugin.RegisterGlobalKeyBindings(), you can see how such global key bindings are used. Please note that global key bindings must be unregistered when your plugin is unloaded, as any other resource which is aquired by a plugin.</li> </ul></blockquote><p></p>
[QUOTE="Albert, post: 855886, member: 67886"] Internally, IR commands are mapped to keys before they are sent through the system. To map commands to actions, there are several ways: [LIST] [*]You can add a key mapping for a screen. To do that, there are two ways: [LIST] [*]Use the [I]KeyBinding[/I] XAML element. That control adds an "invisible" key handler which simply executes a command when the configured key is pressed. [*]Use the [I]KeyBindingControl[/I] XAML element. [/LIST] [*]You can add a global key mapping using the SkinEngine's input manager. In method SkinEnginePlugin.RegisterGlobalKeyBindings(), you can see how such global key bindings are used. Please note that global key bindings must be unregistered when your plugin is unloaded, as any other resource which is aquired by a plugin. [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
Top
Bottom