Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow keys are hard-bound to joystick, preventing keyboard input in emulation #39

Open
HenrikErlandsson opened this issue Oct 5, 2022 · 9 comments

Comments

@HenrikErlandsson
Copy link

I'm using a Bluetooth keyboard which works in Android OS.

Arrow keys don't work but are mapped to the joystick instead.

Some other characters like @#() become braces that repeat. I haven't tested all, but I can do so if asked. I will have a look at the code also. All of it seems to be in keyboard.cpp? But no joystick reference there.

AndroidAppSettings.cfg, which is nowhere to be found on my phone, has two options if you search for "arrow", but I think these just disable some GUI stuff. At least the same -s commandline options do nothing.

The goal is that I would like to turn off all keyboard shortcuts and keyboard hotkeys, and use a Bluetooth keyboard to input all key presses into the emulation.

@mike111769
Copy link

mike111769 commented Oct 5, 2022

I don't know anything about the wireless keyboard..

But I will up vote the fact that setting custom inputs on all of the controller settings needs to be revamped to be more universal...

Basically I can make any controller on screen or Bluetooth do what I want.....

Saud something along this line years ago.

My 2 cents.

Edit:

and in my non experienced opinion, the SDL layer a d the actual emulator fight against each other...

I spent hours adjusting both trying to simply get the goofy movements keys in Ultima III to something close to simple on the touch screen...

Mike

@HenrikErlandsson
Copy link
Author

HenrikErlandsson commented Oct 5, 2022

I don't know anything about the wireless keyboard..

But I will up vote the fact that setting custom inputs on all of the controller settings needs to be revamped to be more universal...

Basically I can make any controller on screen or Bluetooth do what I want.....

Saud something along this line years ago.

My 2 cents.

Edit:

and in my non experienced opinion, the SDL layer a d the actual emulator fight against each other...

I spent hours adjusting both trying to simply get the goofy movements keys in Ultima III to something close to simple on the touch screen...

Mike

Hey Mike, thanks for the quick reply :)

Can you instruct me on how to make the arrow keys go to arrow keys and not the joystick using a BT keyboard? I'm a dev, but if it can be done without recompile it's better for everyone!

@mike111769
Copy link

mike111769 commented Oct 5, 2022

No that was my issue, why im voting up on your post.

I'd set controls on the SDL and it'd overrode the actual emulator...

Then I'd go in to the emulator trying to change the on screen joystick. if memory serves meUltima iiii, which was like @ , ./
I wanted to assign those keys to joystick ...

As I'm playing in myy phone, I'd really rather not have a whole keyboard covering the screen when I'm trying to play a game from my past...

I agree, it needs reworking .

But as of now, I haven't seen a workaround ..

I could suggest a keyboard that you can re assign the keys...

But that's a work around, not a solution...

edit:2

And don't get me wrong this is the best Amiga emulator around! I've got scahlos latest, mui latest. it's a great emulator.

Mike

@HenrikErlandsson
Copy link
Author

I see. Yeah, my problem is the opposite. Keys are stolen from my keyboard and mapped to the joystick!

I could get a fricking numpad keyboard and maybe make THOSE arrow keys work, but there are no decent keyboards with numpad and touchpad. Plus it would be too big. And maybe those arrow keys are mapped to joystick too...

@mike111769
Copy link

Ok well my thought was you could remap your keyboard to what UAE wants.... your doing it on the hardware side..

As I said I dunno. But I like trying to find a solution .

If I remember, they make wireless keyboards that you can remap without a cpu intervention.

Again I don't know ...

But yes it wotks if we could make our controls the way we want it......

Again years ago I put this up as an issue...

Hell back then you'd click on the a4000 settings and it'd force close...

let me know if you get anywhere..

@mike111769
Copy link

hey, dunno if this will help, I used it years ago..

https://play.google.com/store/apps/details?id=com.fishstix.gameboard

Regards,

Mike

@HenrikErlandsson
Copy link
Author

HenrikErlandsson commented Aug 29, 2023

Missed your reply because I also got emails about replies to threads I hadn't started. Don't know how to opt-in to subscribe to only my issues.

Just to be clear I'm not doing this to play games. I'm also not doing it to map keyboard keys to virtual screen/touch buttons. (The app you linked to seems to map keyboard keys to D-Pad inputs for games?)

I have a phone with a large screen and a normal BT keyboard, and I want to write text and use the cursor keys in the Amiga emulation, as if I were pressing keys on the Amiga. The problem is that when a physical cursor key on the keyboard is pressed, it's sent by the emulator as a joystick direction to the emulated Amiga instead.

@mike111769
Copy link

Ya I know... Why my main point back then is it should be assignable not hard coded, if I want joystick up to be 5, it should send a 5....

I ran into all kinds of different issues with configuring keys to do what I want them to...

The example is a game, but still.... if you think back to the old commodore days, games like ultima used @ / : ; if I want to adapt the joystick over I can't...

Also goes for the arrow keys, you should be able to unbind them from the joystick configuration.. and bind them to what they are... CRSR keys.

Honestly I haven't even used this in a while till recently when someone posted, and I got emailed....

@mike111769
Copy link

And ya, that was my best solution back then was that app.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants