nikita36078 / J2ME-Loader

A J2ME emulator for Android.
Apache License 2.0
1.84k stars 201 forks source link

[Feature request] Gamepad d-pad support #444

Open BeF1990 opened 5 years ago

BeF1990 commented 5 years ago

I have problem with using full potential of gamepad with J2ME. When I move d-pad in main directions (up, down, left, right) everything is fine but when I want to move up-left, up-right, down-left or down-right it's impossible to map d-pad for keys 1, 3, 7 and 9. Can you add full support for gamepads??

Before I used Octopus app to add another layout of control above virtual J2ME's keyboard but now my device is not supported any more. I don't want to use additional application to run my favourite games.

Bakugan77 commented 5 years ago

deleted

nikita36078 commented 5 years ago

@Bakugan77 Please stop spamming

BeF1990 commented 5 years ago

I think I found the best solution for my issue. Can you add possibility to map two physical keys to one button on the virtual keyboard?

Let's take Gangstar games for example - we can move in 8 directions - 4 main directions (up, down, left right) and 4 diagonal (up-right, up-left, down-left, down-right). Now I use physical keyboard to play and to move in 4 main directions I use arrows, but the problem is with diagonal movement. If I could map left and up arrows to one key for example it would be perfect.

Virtual keyboard: 1 2 3 4 5 6 7 8 9

I want to map keys like this: 1 - left + up arrows 2 - up arrow 3 - right + up arrows 4 - left arrow
6 - right arrow 7 - left + down arrows 8 - down arrow 9 - right + down arrows

Or the other solution is to add 8 directions d-pad like in this post: https://github.com/nikita36078/J2ME-Loader/issues/329

It would be very useful and comfortable in many games.

I hope you understand what I'm trying to explain... Sorry but I'm not good English speaker.

BeF1990 commented 3 years ago

I don't want to open new topic so I'll use this because it's related in my opinion.

When I tried to play BioShock java game last time I discovered some limitations with gamepad support. Right now for the emulator left analog and d-pad are the same, I mean we can't use them separately and currently it's impossible to use right analog. For most games that's not a problem but in BioShock, controls are very specific and it would be great if I can use d-pad for arrows and left or right analog for 2, 4, 6, 8 buttons.

By the way have you find any solution for diagonal movement on gamepad?

amarcioz commented 3 years ago

I don't want to open new topic so I'll use this because it's related in my opinion.

When I tried to play BioShock java game last time I discovered some limitations with gamepad support. Right now for the emulator left analog and d-pad are the same, I mean we can't use them separately and currently it's impossible to use right analog. For most games that's not a problem but in BioShock, controls are very specific and it would be great if I can use d-pad for arrows and left or right analog for 2, 4, 6, 8 buttons.

By the way have you find any solution for diagonal movement on gamepad?

I played and finished the game. I only used two keyboards, the numeric and the arrow keys.

BeF1990 commented 3 years ago

I played and finished the game. I only used two keyboards, the numeric and the arrow keys.

Ok, but I use gamepad and my topic cover this kind of problem.

BeF1990 commented 1 year ago

I bought the new Retroid Pocket 3+ handheld console and it was the best time to try again my favourite java games on this amazing device. Unfortunately I discovered the gamepad support is still not good in J2ME emulator. :(

  1. Diagonal movement - it's impossible to map d-pad for keys 1, 3, 7 and 9.
  2. Can't use d-pad and left analog separately.
  3. Right alalog doesn't work.

It would be great if you include additional option in controls menu for diagonal movement assigned to d-pad or left analog. up-right = 3 up-left = 1 down-left = 7 down-right = 9

The overlay to map touchscreen controls would be awsom too.

ppvnf commented 1 year ago

I connected my bluetooth D3 controller to Android phone using ps3 mode . It recognizes 4 left 6 right 8 top and 2 bottom. However I can't use 5 for some reason. I tried pressing all buttons in the controller but it doesn't recognize it