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.07k stars 107 forks source link

PowKiddy Q90 Plus button unmapped #458

Closed eknives closed 1 year ago

eknives commented 1 year ago

Hi, Is possible to map the Plus button (right side)? It can be useful for some emulators, Q90 hasn't buttons L2/R2.

Thx.

szymor commented 1 year ago

Not sure, but as far as I remember it is a dummy button. Somebody else needs to confirm, though.

TriForceX commented 1 year ago

Yes is possible, we confirmed it with @Apaczer few weeks ago, the only one first we tested was using an outdated/different tool...

Theres actually a key combo to simulate L2/R2, we can consider it, but needs to be something not very important due that button is only present on Q90 and Q20.

Thanks for your suggestion!

eknives commented 1 year ago

Thanks. It is only needed for psx emulation. Sometimes I switch select/start with L2/R2 but I lost select/start in game. Then I usually set menu (emulator) and start button in minus button because is not a matter pause game when I need to open emulator options and if I need press start the button stills available.

PS: Plus and minus buttons are really terrible, it sucks when you need in cannonball to change gear.

PS2: Maybe... suggested combos: select+R=R2, select+L=L2, start+R=start and start+L=select. If it can be set directly in pcsx rearmed sd I think it would be solved, only is needed correct .cfg file.

Rezzy-dev commented 1 year ago

@TriForceX Wait what?! The time I asked, everyone told me that button is not wired to the motherboard! o.O

So what keyboard key (keycode) does it correspond to?

I'm using a Q90 and can help test and implement.

Rezzy-dev commented 1 year ago

...it [...] needs to be something not very important due that button is only present on Q90 and Q20.

Actually, no, if it's available, let's map it and make it settable/usable in emulators! An extra button is an extra button! Why exclude it?

It doesn't need to be part of the system, but let's at least make it usable in emulators as an extra mappable button!

eknives commented 1 year ago

It is cool that we can map an extra button, but I still thinking that select+R=R2, select+L=L2, start+R=start and start+L=select is a better choice when you are using pcsx rearmed standalone emulator. This is the really improvement for this cfw

Rezzy-dev commented 1 year ago

@eknives That's a tweak in PCSX-R (in the configs or source code for the emulator), not in the system. I'm talking about making the Plus button mappable/usable system-wide for any app/emulator.

You brought up the topic about the Plus button, which up to this point we thought couldn't be used/mapped. It would be good to get it working.

TriForceX commented 1 year ago

@TriForceX Wait what?! The time I asked, everyone told me that button is not wired to the motherboard! o.O

So what keyboard key (keycode) does it correspond to?

I'm using a Q90 and can help test and implement.

yea the only reference we had was my console, nobody else wanted to test it on another q90, my mistake was that the console i used was an early version (it didn't have the powkiddy label and the printed model was LD500) and ive used a wrong iotester version, so when i tried it on another of my q90s with the proper tool i noticed that it did work.

eknives commented 1 year ago

@eknives That's a tweak in PCSX-R (in the configs or source code for the emulator), not in the system. I'm talking about making the Plus button mappable/usable system-wide for any app/emulator.

You brought up the topic about the Plus button, which up to this point we thought couldn't be used/mapped. It would be good to get it working.

Ok, I will open new post.

Rezzy-dev commented 1 year ago

yea the only reference we had was my console, nobody else wanted to test it on another q90, my mistake was that the console i used was an early version (it didn't have the powkiddy label and the printed model was LD500) and ive used a wrong iotester version, so when i tried it on another of my q90s with the proper tool i noticed that it did work.

Oh, I see! 😮 But I've been here all along, and developing on a new PowKiddy Q90! 😅 And I'm more than happy to help get this working.

When you say it works, do you mean that the button physically works, or that it can already be configured/mapped in the system?

I've tried to run xev and showkey to test the input, but neither are installed on our build of Miyoo Linux.

TriForceX commented 1 year ago

yea the only reference we had was my console, nobody else wanted to test it on another q90, my mistake was that the console i used was an early version (it didn't have the powkiddy label and the printed model was LD500) and ive used a wrong iotester version, so when i tried it on another of my q90s with the proper tool i noticed that it did work.

Oh, I see! 😮 But I've been here all along, and developing on a new PowKiddy Q90! 😅 And I'm more than happy to help get this working.

When you say it works, do you mean that the button physically works, or that it can already be configured/mapped in the system?

I've tried to run xev and showkey to test the input, but neither are installed on our build of Miyoo Linux.

The test we did few weeks ago i got PAGE DOWN on the + "fake" button image then we did some tests to change it or testing new hotkeys, cannot remember right now, i summon @Apaczer to tell you the latest status

Apaczer commented 1 year ago

I've been summoned! Please state your wish mortals :smiley: (sorry, had to ;p)

Yes, we've been working with @TriForceX to make Right function ("+") somewhat usable. Turns out it gave input signal long since L2/R2 buttons on V90 have been supported by @flabbergast, hence PAGE_DOWN output on I/O tester when "+" button is pressed which corresponds to R2 on V90.

The right upper button on Q90 and Q20 mini (let's call it Rfunction) are connected to the same GPIO, so behave exactly the same.

Firstly with Q20 mini we created separate variant for keyboard layout to swap Rfunction/Lfunction buttons & include new hotkey combo for these devices, by request of users:

Starting from 2.0 CFW the "L2/R2" simulation will be activated with RESET+L1 & RESET+R1 combo on all devices (beside V90 which has reserved those for "L3/R3").

Secondly I tried to add Q90 variant which will consider swapped location of physical SELECT/START buttons comparingly to Q20 mini, and thought it might be worth a shot and do smth like this:

However finally we decided to use the same variant for Q90 and Q20, as using face buttons for brigthness/volume control may feel unintuitive for some users.


If u guys feel that anyhing should be changed for Q90, please let us know (we value every thoughtful vote). Firstly check on your device these images (changing naming in console.cfg accordingly):

Rezzy-dev commented 1 year ago

Thanks @TriForceX, @Apaczer. I don't have a problem at all with the way the current 1.3.3 firmware works on the Q90, actually. The only thing missing in terms of hardware functioning has been the Plus button.

It is great to know that the button actually fully works in the firmware! 😄 ❤️ Thank you for this discovery, and the really helpful screenshot, @TriForceX! I will try 'wiring' the button in in the configs, and see how I go (will let you know).

I presume (I think correctly) that 281 is the SDL keycode for it (and yes, it stands for the Page Down keyboard key).

Rezzy-dev commented 1 year ago

Ah, I must have misunderstood. It's not implemented into the system yet, right (the 1.3.3 release)? Because SDL doesn't seem to be recognising it on DOSBox.

Apaczer commented 1 year ago

Yes, u must first flash one of alpha *.img builds I have linked in prv reply already.

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

Ah, I must have misunderstood. It's not implemented into the system yet, right? Because SDL doesn't seem to be recognising it on DOSBox.

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

Rezzy-dev commented 1 year ago

Yep, I just wasn't sure as to the exact timeframe this falls in -- I mistook it for before 1.3.3 was released:

Turns out it gave input signal long since L2/R2 buttons on V90 have been supported by @flabbergast, hence PAGE_DOWN output on I/O tester when "+" button is pressed which corresponds to R2 on V90.

I will try the new, WIP build when I get a chance to.

(If this works, which I'm presume it will, and if the new WIP build is stable, I'm just not keen on having to migrate everything over from the previous, stable build. Not sure I'll have the time to at the moment. So that cuts my enthusiasm a bit. The new build is essentially a new OS release, and I'm not sure I'm ready to upgrade. Quite happy with my old setup. But that doesn't mean I can't test the new build on a new SD card.)

There's no way for the user to retrofit support for the Plus button back into the 1.3.3 release, is there? No binary or system settings we can drag over from one release to the other to retrofit support for the Plus button.

eknives commented 1 year ago

I have tested in my PowKiddy Q90 this one official q20 variant from MiyooCFW/sdcard CI build

and minus button is ok, plus button is page down, minus button + L button is page up, but minus button + R button is page down too.

How can I avoid GB Style PowKiddy logo? I like it, but is better if is optional.

Thanks.

P.S: Having some minor sound issues.

Rezzy-dev commented 1 year ago

How can I avoid GB Style PowKiddy logo? I like it, but is better if is optional.

@eknives Very simple: remove the "boot-logo" file on the root of the "main" partition. It contains that animation/logo. If it's not there, the boot process will skip it. It is optional.

eknives commented 1 year ago

How can I avoid GB Style PowKiddy logo? I like it, but is better if is optional.

@eknives Very simple: remove the "boot-logo" file on the root of the "main" partition. It contains that animation/logo. If it's not there, the boot process will skip it. It is optional.

It isn't there in new CFW 2.0.

Apaczer commented 1 year ago

eknives, if u changed variant in console.cfg u must perform FIRSTBOOT procedure again, thus change in /boot file firstboot.done to firstboot, otherwise new key bindings won't apply.

On Sat, Jan 21, 2023, 00:33 eknives @.***> wrote:

I have tested in my PowKiddy Q90 this one official q20 variant from MiyooCFW/sdcard CI build https://github.com/MiyooCFW/sdcard/actions/runs/3962511528

and minus button is ok, plus button is page down, minus button + L button is page up, but minus button + R button is page down too.

How can I avoid BG Style PowKiddy logo? I like it, but is better if is optional.

Thanks.

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

eknives commented 1 year ago

@Apaczer I didn't change anything and everything seems to be fine, I only asked how to eliminate classic GB boot animation.

Apaczer commented 1 year ago

Change in /boot/console.cfg to CONSOLE_VARIANT=q20 and then perform firstboot procedure. The PLUS button should indicate RSHIFT On Sat, Jan 21, 2023, 11:06 eknives @.***> wrote:

@Apaczer https://github.com/Apaczer I didn't change anything and everything seems to be fine, I only asked how to eliminate classic GB boot animation.

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

eknives commented 1 year ago

@Apaczer I did it just now, Plus is Rshift.

P.S: I checked this one: "unofficial q90_v2 variant from offbranch fork" and I get a bad perfomance :S

Apaczer commented 1 year ago

Updated inputs on latest build and overview in: https://github.com/TriForceX/MiyooCFW/wiki/Miyoo-CFW#console-hotkeys