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 1
Area 51 - Testing Area
[MP1-4795] Add keyboard support to HID handler
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="Stéphane Lenclud" data-source="post: 1184482" data-attributes="member: 140174"><p>I like it too <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> been wanting to go that way from the time I first started work on HID so it's nice to see things coming together.</p><p></p><p></p><p>You can't add new keys from the UI. I won't be adding this functionality as part of those changes. Though at some point I most likely will. What I should do for now is add "all" keyboard keys to the XML file, even those without mapping so that actions can be added to them through the UI.</p><p>You could yourself add keys in your XML file if you want to. The button code for keyboard belongs to the <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.keys%28v=vs.110%29.aspx" target="_blank">Keys Enumeration</a>.</p><p>Through the XML file you can also define modifiers like shift and control:</p><p>[CODE=XML] <!-- TGB - Switch home --></p><p> <button code="H" shift="false" alt="false" win="false" ctrl="false"></p><p> <action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="115" sound="click.wav"/></p><p> </button></p><p>[/CODE]</p><p></p><p></p><p></p><p>The default teletext buttons are mapped as follow in MP:</p><p>Q = Red</p><p>W = Green</p><p>O = Yellow </p><p>P = Blue</p></blockquote><p></p>
[QUOTE="Stéphane Lenclud, post: 1184482, member: 140174"] I like it too :) been wanting to go that way from the time I first started work on HID so it's nice to see things coming together. You can't add new keys from the UI. I won't be adding this functionality as part of those changes. Though at some point I most likely will. What I should do for now is add "all" keyboard keys to the XML file, even those without mapping so that actions can be added to them through the UI. You could yourself add keys in your XML file if you want to. The button code for keyboard belongs to the [URL='https://msdn.microsoft.com/en-us/library/system.windows.forms.keys%28v=vs.110%29.aspx']Keys Enumeration[/URL]. Through the XML file you can also define modifiers like shift and control: [CODE=XML] <!-- TGB - Switch home --> <button code="H" shift="false" alt="false" win="false" ctrl="false"> <action layer="0" condition="*" conproperty="-1" command="ACTION" cmdproperty="115" sound="click.wav"/> </button> [/CODE] The default teletext buttons are mapped as follow in MP: Q = Red W = Green O = Yellow P = Blue [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Area 51 - Testing Area
[MP1-4795] Add keyboard support to HID handler
Contact us
RSS
Top
Bottom