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
MediaPortal 1 Plugins
InputDeviceMapper 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="T-Square" data-source="post: 19864" data-attributes="member: 12905"><p>Hi Kaburke,</p><p></p><p>I've connected some buttons to the 4 free input pins at the printer port.</p><p>Because I use the printer port anyhow for my LCD, this is a very easy possibility to have up to 31 buttons on my HTPC.</p><p>[code]</p><p> eingang = IO.m_Port.Tasten(0x378+1);</p><p> </p><p> if(eingang == 15 /*01111 Keine Taste gedrückt*/)</p><p> {</p><p> }</p><p> else if(eingang == 14 /*PIN 15*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_PREV_ITEM, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 13 /*PIN 13*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_PLAY, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 12 /*PIN 13+15*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_NEXT_ITEM, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 11 /*PIN 12*/)</p><p> {</p><p> /*4er Reihe ganz rechts*/</p><p> action = new Action(Action.ActionType.ACTION_PREVIOUS_MENU, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 10 /*PIN 12+15*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_MOVE_UP, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 9 /*PIN 12+13*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_MOVE_RIGHT, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 8 /*PIN 12+13+15*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_SELECT_ITEM, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 7 /*PIN 10*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_MOVE_DOWN, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p> else if(eingang == 6 /*PIN 10+15*/)</p><p> {</p><p> action = new Action(Action.ActionType.ACTION_MOVE_LEFT, 0, 0);</p><p> GUIGraphicsContext.OnAction(action);</p><p> }</p><p>[/code]</p><p></p><p>I've implemented this stupid button polling by myself somewhere in the sourcecode (just a quick and dirty trial).</p><p></p><p>But of course I have to compile this again everytime when there is a new MP version </p><p>and I have no configuration (mapping) file at the moment.</p><p>So this solution is not very comfortable.</p><p></p><p>Do you think that there is any chance to add such button support in your plugin?</p><p></p><p>Regards</p><p></p><p>T-Square</p></blockquote><p></p>
[QUOTE="T-Square, post: 19864, member: 12905"] Hi Kaburke, I've connected some buttons to the 4 free input pins at the printer port. Because I use the printer port anyhow for my LCD, this is a very easy possibility to have up to 31 buttons on my HTPC. [code] eingang = IO.m_Port.Tasten(0x378+1); if(eingang == 15 /*01111 Keine Taste gedrückt*/) { } else if(eingang == 14 /*PIN 15*/) { action = new Action(Action.ActionType.ACTION_PREV_ITEM, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 13 /*PIN 13*/) { action = new Action(Action.ActionType.ACTION_PLAY, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 12 /*PIN 13+15*/) { action = new Action(Action.ActionType.ACTION_NEXT_ITEM, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 11 /*PIN 12*/) { /*4er Reihe ganz rechts*/ action = new Action(Action.ActionType.ACTION_PREVIOUS_MENU, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 10 /*PIN 12+15*/) { action = new Action(Action.ActionType.ACTION_MOVE_UP, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 9 /*PIN 12+13*/) { action = new Action(Action.ActionType.ACTION_MOVE_RIGHT, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 8 /*PIN 12+13+15*/) { action = new Action(Action.ActionType.ACTION_SELECT_ITEM, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 7 /*PIN 10*/) { action = new Action(Action.ActionType.ACTION_MOVE_DOWN, 0, 0); GUIGraphicsContext.OnAction(action); } else if(eingang == 6 /*PIN 10+15*/) { action = new Action(Action.ActionType.ACTION_MOVE_LEFT, 0, 0); GUIGraphicsContext.OnAction(action); } [/code] I've implemented this stupid button polling by myself somewhere in the sourcecode (just a quick and dirty trial). But of course I have to compile this again everytime when there is a new MP version and I have no configuration (mapping) file at the moment. So this solution is not very comfortable. Do you think that there is any chance to add such button support in your plugin? Regards T-Square [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
InputDeviceMapper Plugin
Contact us
RSS
Top
Bottom