randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
474 stars 56 forks source link

Waveshare GameHAT stick sensitivity (threshold) #237

Open 1980alexGS opened 11 months ago

1980alexGS commented 11 months ago

Hello - apologies if this is the wrong place to ask this, but is there a way please to adjust the analog stick sensitivity for the Waveshare GameHAT?

The analog stick seems to require at least 50% movement to trigger, which might not sound a lot, but it’s a long throw particularly for games requiring back-and-forth. I considered making a shorter stick but then the force required to operate is too high. The problem could easily be solved in software if the threshold could be set to 25%, ie. a reduced deadzone.

I can see threshold settings in the BMC64 menu for USB game pads, but the GameHAT seems to be a fixed config under the GPIO options.

Thanks for any light you can shed on this.

Of course, I love the emulation accuracy, the crisp display, fast loading, and great sound! It all works beautifully apart from the joystick :)

randyrossi commented 11 months ago

I'm not aware of any way to change the threshold of the hat. The hat is not analog. BMC64 just gets on/off signals from the GPIO pins it's wired too so it can't be a BMC64 setting. I'm not sure if there's a way to tell the hat to change the threshold. Might want to contact waveshare to ask.

On Fri, Aug 11, 2023 at 6:41 AM 1980alexGS @.***> wrote:

Hello - apologies if this is the wrong place to ask this, but is there a way please to adjust the analog stick sensitivity for the Waveshare GameHAT?

The analog stick seems to require at least 50% movement to trigger, which might not sound a lot, but it’s a long throw particularly for games requiring back-and-forth. I considered making a shorter stick but then the force required to operate is too high. The problem could easily be solved in software if the threshold could be set to 25%, ie. a reduced deadzone.

I can see threshold settings in the BMC64 menu for USB game pads, but the GameHAT seems to be a fixed config under the GPIO options.

Thanks for any light you can shed on this.

Of course, I love the emulation accuracy, the crisp display, fast loading, and great sound! It all works beautifully apart from the joystick :)

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKFJN3IXCFJDCWI4VFTXUYD4PANCNFSM6AAAAAA3MXSC5U . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Randy Rossi

1980alexGS commented 11 months ago

Thank you, that is really helpful to know. I was asking the wrong question - I thought it must be analog and useful for other emulated systems! Since it is only digital, it seems the best approach is a hardware replacement - like this, but tidier:Waveshare GameHAT Game HAT DPAD Modyoutu.beI shall do something like that.Thanks again for the information.-AlexOn 12/08/2023, at 12:39 AM, randyrossi @.***> wrote: I'm not aware of any way to change the threshold of the hat. The hat is

not analog. BMC64 just gets on/off signals from the GPIO pins it's wired

too so it can't be a BMC64 setting. I'm not sure if there's a way to tell

the hat to change the threshold. Might want to contact waveshare to ask.

On Fri, Aug 11, 2023 at 6:41 AM 1980alexGS @.***> wrote:

Hello - apologies if this is the wrong place to ask this, but is there a

way please to adjust the analog stick sensitivity for the Waveshare GameHAT?

The analog stick seems to require at least 50% movement to trigger, which

might not sound a lot, but it’s a long throw particularly for games

requiring back-and-forth. I considered making a shorter stick but then the

force required to operate is too high. The problem could easily be solved

in software if the threshold could be set to 25%, ie. a reduced deadzone.

I can see threshold settings in the BMC64 menu for USB game pads, but the

GameHAT seems to be a fixed config under the GPIO options.

Thanks for any light you can shed on this.

Of course, I love the emulation accuracy, the crisp display, fast loading,

and great sound! It all works beautifully apart from the joystick :)

Reply to this email directly, view it on GitHub

https://github.com/randyrossi/bmc64/issues/237, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAI3HKFJN3IXCFJDCWI4VFTXUYD4PANCNFSM6AAAAAA3MXSC5U

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***>

--

Randy Rossi

things, Cache Invalidation, and Off-by-one errors."

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

darwiniandude commented 10 months ago

That’s super bizarre Game Hat uses an analogue control stick for a digital input! Wish I’d investigated one of the other dpad style hats they have but I couldn’t confirm BMC64 compatibility.