BlitterStudio / amiberry

Optimized Amiga emulator for Linux/macOS
https://amiberry.com
GNU General Public License v3.0
644 stars 87 forks source link

Keyrah v2 doesn't trigger a reset #200

Closed pawelomega closed 6 years ago

pawelomega commented 6 years ago

Master Branch: Reset Amiga via LAMIGA RAMIGA +CTRL doesn't work with Amiga keyboard (KEYRAH V2) but PC USB keyboard and reset Amiga ( windows windows ctrl) work good.

Latest DEV branch - LEDS doesn't work.

midwan commented 6 years ago

@pawelomega This has to do with the detection of keys. Are you using the SDL1 or SDL2 version for this test? They use different detection code internally, since they are different frameworks...

I could create a small tool to detect the keycodes/scancodes of keys, so we can see how those LAmiga, RAmiga and Ctrl through Keyrah v2 are seen in the SDLx framework. Then it's easy to capture them for a reset as well.

pawelomega commented 6 years ago

Thanks. Where I can download your program ?

midwan commented 6 years ago

@pawelomega I'll have to create it first, then I'll update you on that :)

midwan commented 6 years ago

@pawelomega Actually, there's a way to do that without an extra tool. Try this:

pawelomega commented 6 years ago

Hello.

Ok Open GUI for ex.

Amiga Kbrd (via KEYRAH2) = Assign key in GUI (Amiberry 2.12)

Left Amiga = LEFT ALT Right Amiga = LEFT ALT Left Alt = Left Alt Right Alt = Right Alt CTRL = CTRL Capslock = Unknown Keyboard Delete = Delete HELP = Insert

Winuae with that same A1200 kbrd + keyrah assign keys properly and Right Amiga is a PC Windows "MENU"

Hope You will find solution ;)

midwan commented 6 years ago

@pawelomega This seems like a bug in SDL1 actually, as those keys are incorrectly detected. Do you have the possibility to test this on a Stretch distro, using SDL2? I suspect the problem will not be there.

I cannot test it myself unfortunately, since I don't have the hardware you're using.

pawelomega commented 6 years ago

Actually Im working outside my coutry about 3 weeks. So early in March I can do this.

2018-02-11 12:51 GMT+01:00 Dimitris Panokostas notifications@github.com:

@pawelomega https://github.com/pawelomega This seems like a bug in SDL1 actually, as those keys are incorrectly detected. Do you have the possibility to test this on a Stretch distro, using SDL2? I suspect the problem will not be there.

I cannot test it myself unfortunately, since I don't have the hardware you're using.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/midwan/amiberry/issues/200#issuecomment-364745758, or mute the thread https://github.com/notifications/unsubscribe-auth/AXf4ut88mDIhihga-Kj_K9pn5-RM_lo1ks5tTtRVgaJpZM4RZs1_ .

-- Best Regards Paweł "Paul" Majchrowski

pawelomega commented 6 years ago

Hello MIDWAN.

Just checked latest DietPi Stretch (fresh instalation from IMG with latest 2.14) and Amiga 1200 keyboard working properly (reset LAMIGA RAMIGA CTRL) now but led'sstill doesn't work and have problem with screen resolution. When I set default KMS i have too big Amiga pointer and can't navigate buttons but Amiberry work. When select FKMS driver from dietpi-config pointer in Amiberry look good and working properly but Amiberry won't run. I have black screen when pressed START.

h5n1xp commented 6 years ago

On 5 Mar 2018, at 13:47, Pawel notifications@github.com wrote:

Hello MIDWAN.

Just checked latest DietPi Stretch (fresh instalation from IMG with latest 2.14) and Amiga 1200 keyboard working properly (reset LAMIGA RAMIGA CTRL) now but led'sstill doesn't work...

I also find the lack of LEDs in Keyrah annoying... perhaps amiberry needs some iocontrol commands?

include

include <linux/kd.h>

int main(int argc, char *argv[]) { ioctl(1, KDSETLED, NUM_LED); return 0; }

midwan commented 6 years ago

@pawelomega OK, if the Reset combination works then I suggest we close this issue, to avoid going in other directions. Please open a separate issue/issues regarding your other issues, so we can handle them separately.