TriForceX / MiyooCFW

Custom firmware source code and resources for BittBoy, PocketGo, PowKiddy V90-Q90-Q20 and third party handheld consoles
GNU General Public License v2.0
1.1k stars 110 forks source link

PowKiddyQ90/Q20: Combo buttons for L2/R2 in PCSX reARMed standalone #459

Closed eknives closed 1 year ago

eknives commented 1 year ago

Hi, Would it be possible to modify or create a proper config file for PCSX rearmed standalone (and Retroarch) with button combinations to get L2/R2 working on PowKiddy Q90?

I think a good solution would be Select+L=L2 , Select+R=R2 , Start+L = Select , Start+R= Start.

Thx.

Rezzy-dev commented 1 year ago

There's a hidden folder inside the emus/pcsx_rearmed/ directory, called ".pcsx". Inside it you'll find "pcsx.cfg". This is the emulator's configuration file, that contains the button mapping setup. You can change the keys assigned to each PS controller button here, but I am not sure that PCSX-R supports combination keys to set a button (what you are trying to do with Select + L). You could play around with it and see. Just make sure you back up your original "pcsx.cfg" file before you do.

The Select button on Miyoo corresponds to the ESC key, and the Start button to the Enter key. L is Tab, and R is Backspace.

bind backspace = player1 R1
bind tab = player1 L1
bind return = player1 START
bind escape = player1 SELECT
bind space = player1 SQUARE
bind up = player1 UP
bind down = player1 DOWN
bind right = player1 RIGHT
bind left = player1 LEFT
bind f1 = Save State
bind f2 = Load State
bind f3 = Prev Save Slot
bind f4 = Next Save Slot
bind f5 = Toggle Frameskip
bind f6 = Take Screenshot
bind f7 = Show/Hide FPS
bind f12 = Fast Forward
bind left shift = player1 CIRCLE
bind right ctrl = Enter Menu
bind left ctrl = player1 TRIANGLE
bind left alt = player1 CROSS

So what you are trying to do may be:

bind escape backspace = player1 R2

Or:

bind escape + backspace = player1 R2
eknives commented 1 year ago

Thanks but no ways. I also tried with "and", & and others combinations.

Rezzy-dev commented 1 year ago

Yeah, I just checked in the source code. Such key combinations are not supported by the emulator (haven't been programmed into it). You will need to assign L2 and R2 to single buttons (unless you plan to rewrite the source).

The Q90 (and Miyoo devices in general) are really not optimal for PlayStation emulation (both in terms of speed, hardware performance, and in terms of lacking a physical L2 and R2 button).

Rezzy-dev commented 1 year ago

Note that you should be able to simulate an L2 and R3 button press using the Reset (Minus) + L / R combination. This is a system-wide setting, and it should work in the emulator, too (as it will send the signal to the emulator that the nonexistent L2 or R2 button has been pressed).

Rezzy-dev commented 1 year ago

It looks like you'll have an extra button to use! Just testing it now, but it looks like the Plus button on the Q90/Q20 is actually fully functional, and corresponds to the Page Down keyboard key. You could 'wire' it to either L2 or R2 for the emulator using the config settings above:

bind page down = player1 L2

or

bind pagedown = player1 L2

Edit: Actually, this won't work yet, it seems (in MiyooCFW 1.3.3). But it may do so in the future. https://github.com/TriForceX/MiyooCFW/issues/458

Apaczer commented 1 year ago

The "Simulated L2 & R2" can be accesed since 1.3.1 CFW with following combo: L2 = RESET+TB (on Bittboy) R2 = RESET+TA (on Bittboy) L2 = RESET+X (on others) R2 = RESET+A (on others)

Of course it applies through all the OS and is baked in kernel itself.

Our wiki description may need correction as it is referring to next 2.0 release (we should add that info as side note)

On Fri, Jan 20, 2023, 02:51 Rezzy @.***> wrote:

It looks like you'll have an extra button to use! Just testing it now, but it looks like the Plus button on the Q90/Q20 is actually fully functional, and corresponds to the Page Down keyboard key. You could 'wire' it to either L2 or R2 for the emulator using the config settings above:

bind page down = player1 L2

or

bind pagedown = player1 L2

— Reply to this email directly, view it on GitHub https://github.com/TriForceX/MiyooCFW/issues/459#issuecomment-1397828274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWUIZIG4PAOR6W3Q7PISZRDWTHVRRANCNFSM6AAAAAAUALQHJA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

eknives commented 1 year ago

In CFW 1.3.3 I use Select/Start like L2/R2 in emulator and the combos Minus+X/Minus+A like Select/Start in emulator.

In new CFW 2.0 I use Select/Start like L2/R2 in emulator, Plus+L to open menu emulator and Minus/Plus like Select/Start.

Rezzy-dev commented 1 year ago

Thanks for that, @Apaczer. We really should update the documentation to reflect this -- most users are still on 1.3.3. The documentation for 1.3.3 and for 2.0 should be split, as they are two entirely different OS releases, with different setups.

What SDL keycodes (or keyboard keys) do the virtual L2 and R2 correspond to?

Apaczer commented 1 year ago

Rezzy, yes old/new CFW differ quiet much at current state:

1.3.3 CFW: RALT - L2 RSHIFT - R2

2.0 CFW: PAGEUP - L2 PDOWN - R2 RALT - L3 RSHIFT - R3

On Sat, Jan 21, 2023, 06:17 Rezzy @.***> wrote:

Thanks for that, @Apaczer https://github.com/Apaczer. We really should update the documentation to reflect this -- most users are still on 1.3.3. The documentation for 1.3.3 and for 2.0 should be split, as they are two entirely different OS releases, with different setups.

What SDL keycodes (or keyboard keys) do L2 and R2 correspond to?

— Reply to this email directly, view it on GitHub https://github.com/TriForceX/MiyooCFW/issues/459#issuecomment-1399182273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWUIZIEJ4HSQ7MMELGT6BF3WTNWPTANCNFSM6AAAAAAUALQHJA . You are receiving this because you were mentioned.Message ID: @.***>

Apaczer commented 1 year ago

The hotkey related wiki section has been updated: https://github.com/TriForceX/MiyooCFW/wiki/Miyoo-CFW#console-hotkeys.

If you're on 1.3.3 CFW look at Bittboy column (it applies through out all consoles there)