Actions, Keys, and User/Application Interaction (1 Viewer)

kaburke

Portal Pro
March 4, 2005
64
0
Alberta, Canada
Am I correct in assuming that all user input (keystrokes, mouse events, MCE Remote events, etc.) is "translated" into Actions before being dealt with by the appropriate segment of the application?
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
That's true for most actions. But not for all. Take a look at the sourcecode, so you understand what is "actioned" and what is not.
 

kaburke

Portal Pro
March 4, 2005
64
0
Alberta, Canada
Can you point me to somewhere where that is not the case? I have looked at the code, and it seems to me that all windows inherit GUIWindow, have the OnAction(...) method, and seem to deal with Actions.

I apologize if these are somewhat simplistic quesitons, but the codebase is rather large, and I'm uncertain as to where to look to determine how MediaPortal deals with user input.

Having said this, perhaps it would be more beneficial for me to get to the crux of the matter: I am writing a plugin that abstracts user input away from specific devices. My immediate goal is to write a plugin to allow the use of IR remotes with LiveDrive! IR receivers to control MediaPortal. Should I just be mapping user input device events to Actions, or do I need to be more granular to allow for complete control (i.e., do I have do map to non-Action events)?
 

Users who are viewing this thread


Write your reply...

Similar threads

Thanks for explaining. I found a passing reference to this here: https://www.team-mediaportal.com/wiki/display/MediaPortal1/HID%20Profiles which I had overlooked in the past. I would find it logical for a created custom profile to be automatically activated, but until that happens, I will try to create a wiki page for the current...
Thanks for explaining. I found a passing reference to this here...
I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago...
Replies
14
Views
899
You can always try, select any window, turn off the Media Portal, change the ID of the selected one to the desired one (plugin) and check.
You can always try, select any window, turn off the Media Portal, change the ID of the selected one to the desired one (plugin) and...
I don't have a TV card in my HTPC setup, so I really only use plugins that browse and show media files, like MP TV-Series, Moving...
Replies
5
Views
2K
Ok, so perhaps a solution, but not the "right" solution. On the client, within media portal configuration, under TV settings, advanced options, I switched to UNC paths instead of the default RSS, and it's working very well. Sure I had to figure out the paths, but no big deal. Maybe helpful for someone in the future. Thanks for the...
Ok, so perhaps a solution, but not the "right" solution. On the client, within media portal configuration, under TV settings...
Hi folks. I have an issue with a new install/integration into my mediaportal system. I have a “mediaportal server” which has the TV...
Replies
5
Views
932
So far I needed to limit the media items to respect the token limit of ChatGPT. Now the complete media items can be used, because the movie list is splitted into chunks of a specified size and responses for each chunk are concentrated into the result list :) private async Task<string> GenerateResponseWithGPT(string searchQuery...
So far I needed to limit the media items to respect the token limit of ChatGPT. Now the complete media items can be used, because...
Hi, I'm planning to write a plugin for MediaPortal 2, that supports users to find the right media items with help of AI...
Replies
6
Views
1K
Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
Replies
1
Views
824
Top Bottom