Hi,
I am a long time pcsx2 user and I switched to linux while ago. I was very disappointed with the lack of 4/8 pad support by OnePad linux plugin (the only one I could compile), so I added it and it works quite well (i played an entire WE10 season with no problems), but, before release it, i was tempted by adding direct support for the menu checkbox "Multitap 1/2" which is handled by MainEmuFrame::Menu_MultitapToggle_Click (by load/applying/saving VM settings). After a while, i couldn't find out the "new plugin api" and added just an old legacy api for setting into the plugin space the multitap status, but it's very dirty and I don't want to pull request it. I was going to ask into the developers forum but i can't post a new thread.
So, is there any kind of documentation for the new plugin API? How I could get the values g_Conf->EmuOptions.MultitapPort0/1_Enabled directly from the plugin. I understand you are transitioning toward an adapter/listener interface in AppCorePlugins object, but still could not manage to find an example.
Thanks in advance for your help
P.S. I also enabled the plugin to map more than one controller on the same keyboard, in order to test it properly
UPDATE: i uploaded the code on https://github.com/aerisarn/pcsx2 if anyone could review
Build: Ubuntu 14.04 32bit binaries (executable + plugins): http://www15.zippyshare.com/v/86248632/file.html
I am a long time pcsx2 user and I switched to linux while ago. I was very disappointed with the lack of 4/8 pad support by OnePad linux plugin (the only one I could compile), so I added it and it works quite well (i played an entire WE10 season with no problems), but, before release it, i was tempted by adding direct support for the menu checkbox "Multitap 1/2" which is handled by MainEmuFrame::Menu_MultitapToggle_Click (by load/applying/saving VM settings). After a while, i couldn't find out the "new plugin api" and added just an old legacy api for setting into the plugin space the multitap status, but it's very dirty and I don't want to pull request it. I was going to ask into the developers forum but i can't post a new thread.
So, is there any kind of documentation for the new plugin API? How I could get the values g_Conf->EmuOptions.MultitapPort0/1_Enabled directly from the plugin. I understand you are transitioning toward an adapter/listener interface in AppCorePlugins object, but still could not manage to find an example.
Thanks in advance for your help
P.S. I also enabled the plugin to map more than one controller on the same keyboard, in order to test it properly
UPDATE: i uploaded the code on https://github.com/aerisarn/pcsx2 if anyone could review
Build: Ubuntu 14.04 32bit binaries (executable + plugins): http://www15.zippyshare.com/v/86248632/file.html