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
Browsetheweb for mediaportal 2
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="morpheus_xx" data-source="post: 1125338" data-attributes="member: 48495"><p>Please check the IInputManager service: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.UI/Control/InputManager/IInputManager.cs#L125-L144" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.UI/Control/InputManager/IInputManager.cs#L125-L144</a>. It's accessible via ServiceRegistration.Get<IInputManager>().</p><p></p><p>The highlighted methods allow you to register <strong>global </strong>key bindings, like I do with F10 to toggle StatisticsRenderer.</p><p></p><p>But preferrably you should define the KeyBindings in the screen where you want to react on them. See the "FullscreenContentTV" for an example: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/93361b1a55857b8722bf62dfcb02ca8b4fb5aba7/MediaPortal/Incubator/SlimTvClient/Skin/Titanium/screens/FullScreenContentTv.xaml#L49-L66" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/93361b1a55857b8722bf62dfcb02ca8b4fb5aba7/MediaPortal/Incubator/SlimTvClient/Skin/Titanium/screens/FullScreenContentTv.xaml#L49-L66</a>.</p><p></p><p>This means, for all cases where you have a screen, you should use the XAML way like the 2nd example.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1125338, member: 48495"] Please check the IInputManager service: [url]https://github.com/MediaPortal/MediaPortal-2/blob/645b863546abc31e25ff5a7b01103fccbddeac14/MediaPortal/Source/Core/MediaPortal.UI/Control/InputManager/IInputManager.cs#L125-L144[/url]. It's accessible via ServiceRegistration.Get<IInputManager>(). The highlighted methods allow you to register [B]global [/B]key bindings, like I do with F10 to toggle StatisticsRenderer. But preferrably you should define the KeyBindings in the screen where you want to react on them. See the "FullscreenContentTV" for an example: [url]https://github.com/MediaPortal/MediaPortal-2/blob/93361b1a55857b8722bf62dfcb02ca8b4fb5aba7/MediaPortal/Incubator/SlimTvClient/Skin/Titanium/screens/FullScreenContentTv.xaml#L49-L66[/url]. This means, for all cases where you have a screen, you should use the XAML way like the 2nd example. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Browsetheweb for mediaportal 2
Contact us
RSS
Top
Bottom