maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Remapping keys for WebOS and Nitdroid games (https://talk.maemo.org/showthread.php?t=68167)

deny_winarto 2011-01-10 22:39

Remapping keys for WebOS and Nitdroid games
 
I've googled this but i can't find clear answer..
Is there anyway to remap the keys used in webos and nitdroid games? I bought game gripper and would love to see it work on those games :)
CMIIW, From what i heard this is not possible in android phones because droid can't be rooted yet, but it should be possible for nitdroid right?

maxximuscool 2011-01-10 22:45

Re: Remapping keys for WebOS and Nitdroid games
 
I think if you can't find the answer through google then possibly there isn't any clearer answer than what you've found. Not sure if anyone actually know how to remapping the keys on WebOS games. Even the pioneer Preenv creator is yet to say anything.

jflatt 2011-01-10 22:58

Re: Remapping keys for WebOS and Nitdroid games
 
Are there even any webos games that use keys? Probably not the easiest way to go about it, but you might be able to change the preenv source to look for one key and emit another.

deny_winarto 2011-01-10 23:43

Re: Remapping keys for WebOS and Nitdroid games
 
@maxximuscool : well i tried some apk editor such as "apk manager" but i can't find the file used to change the button config, i hope someone could assist me with this..

@jflatt : Yea, i just think it's better playing games with the keyboard, and game gripper is perfect for this, so far it's only possible on emulators.. while the good games are in nitdroid and webos :(

deny_winarto 2011-01-11 02:07

Re: Remapping keys for WebOS and Nitdroid games
 
Anyone?
What about webos games?
Is it absolutely impossible to assign HW keyboard?

mthmob 2011-01-11 04:48

Re: Remapping keys for WebOS and Nitdroid games
 
with the source code, nothings impossible.. show me the source code :P

deny_winarto 2011-01-11 05:54

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by mthmob (Post 917502)
with the source code, nothings impossible.. show me the source code :P

Well but to get source code i have to unpack the .apk files and find the config file, i have yet to find that file.
As for webos games, they should be easier to find since somebody already made the .deb version right?

mthmob 2011-01-11 07:35

Re: Remapping keys for WebOS and Nitdroid games
 
I doubt you can get the source code simply by unpakking the apk file :P

deny_winarto 2011-01-11 07:53

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by mthmob (Post 917580)
I doubt you can get the source code simply by unpakking the apk file :P

Yea that's what i thought :p
Even with APK manager it's impossible?
Android games uses keyboard, zenonia can use d-pad button..
So there should be a config file somewhere..

mthmob 2011-01-11 11:10

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by deny_winarto (Post 917587)
Yea that's what i thought :p
Even with APK manager it's impossible?
Android games uses keyboard, zenonia can use d-pad button..
So there should be a config file somewhere..

Not if the keys are hardcoded into the compiled program, then it dosent use a config file for keymappings.

jflatt 2011-01-12 17:22

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by deny_winarto (Post 917465)
Anyone?
What about webos games?
Is it absolutely impossible to assign HW keyboard?

Yep, I'm fairly sure it can be done, check out the other preenv thread:
http://talk.maemo.org/showthread.php?t=64392
I'm going to have to buy a GG now to try it out

deny_winarto 2011-01-13 00:49

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by jflatt (Post 918847)
Yep, I'm fairly sure it can be done, check out the other preenv thread:
http://talk.maemo.org/showthread.php?t=64392
I'm going to have to buy a GG now to try it out

Sorry but could you tell me which page discuss it?
There's over 100 page :D

jflatt 2011-01-13 01:15

Re: Remapping keys for WebOS and Nitdroid games
 
Page 103, post #1022

Dany-69 2011-01-13 01:34

Re: Remapping keys for WebOS and Nitdroid games
 
Bro you're GREAT !

jflatt 2011-01-13 05:05

Re: Remapping keys for WebOS and Nitdroid games
 
I'm curious to see if it will work. If you want to try it out, tell me which keys the gg hits, and what you want to try it with

Dany-69 2011-01-13 05:39

Re: Remapping keys for WebOS and Nitdroid games
 
Mmmm ... say me ... how do you emulate a mouse event through the keyboard?
A patch?A script ? What language? I'd like to test it and give a look to the code ^ ^
Say me only how to change the coordinates of the mouse event and the key of the keyboard :)

deny_winarto 2011-01-13 06:06

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by jflatt (Post 919251)
I'm curious to see if it will work. If you want to try it out, tell me which keys the gg hits, and what you want to try it with

Well i got the SNES version (with 4 buttons in the middle)

http://i957.photobucket.com/albums/a...wix_mp_256.jpg

And this is the keys :

Left = A
Up = W
Right = D
Down = X

Left Grey = B
Left Black = T
Right Grey = M
Right Black = U

Green = L
Blue = P
Red = Up
Yellow = Left

deny_winarto 2011-01-13 14:49

Re: Remapping keys for WebOS and Nitdroid games
 
Sorry i forgot the game, maybe assassin's creed since you said you managed to get it working on the other thread?

jflatt 2011-01-13 16:09

Re: Remapping keys for WebOS and Nitdroid games
 
If you hit a diagonal on that thing, does it press two keys at a time, or does it press the diagonal key? For instance, if you press up and left, is that A+W, or is it Q?

mdb666 2011-01-13 16:35

Re: Remapping keys for WebOS and Nitdroid games
 
It presses A+W at the same time.

deny_winarto 2011-01-13 22:03

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by mdb666 (Post 919616)
It presses A+W at the same time.

Yep, same here.

Dany-69 2011-01-13 22:11

Re: Remapping keys for WebOS and Nitdroid games
 
Jflatt soooo where is the scriiiipt :D ?

jflatt 2011-01-14 05:28

Re: Remapping keys for WebOS and Nitdroid games
 
It figures the first one I try, Assassin's Creed would have problems. It registers really quick clicks, and seems to respond to other keys. I mapped out Earthworm Jim instead, and it works well I think. If you want to check it out, do as root
Code:

wget http://members.cox.net/jflatt/libsdlpre.so
mv libsdlpre.so /home/opt/preenv/lib/libsdlpre.so

The d-pad keys still almost line-up exactly to Assassin's Creed so you can see what this patch does with it. If you keep one finger on the touchscreen, the keyboard keys should work somewhat.

Andy1210 2011-01-14 05:48

Re: Remapping keys for WebOS and Nitdroid games
 
woooooooow, you're amazing!!
i can move in assasin's creed with touch screen, and now i can jump with "P" key! Assassin's Creed is fully playable now!! :)

now i can move and shot or move and jump at the same time in nova :D

mdziaf 2011-01-14 07:09

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by jflatt (Post 920013)
It figures the first one I try, Assassin's Creed would have problems. It registers really quick clicks, and seems to respond to other keys. I mapped out Earthworm Jim instead, and it works well I think. If you want to check it out, do as root
Code:

wget http://members.cox.net/jflatt/libsdlpre.so
mv libsdlpre.so /home/opt/preenv/lib/libsdlpre.so

The d-pad keys still almost line-up exactly to Assassin's Creed so you can see what this patch does with it. If you keep one finger on the touchscreen, the keyboard keys should work somewhat.

I'm interested in trying this, but what does it actually do?

does it map the mouse2 by pressing an assigned position on the touch screen, or through a key on the keypad? if its the latter, could we change the assignments?

mido.fayad 2011-01-15 01:05

Re: Remapping keys for WebOS and Nitdroid games
 
now Driver , assasins , hero of sparta , nova , angry birds seasons , blades of fury , castle of magic are fully playable and no need for multitouch

although we need to add some buttons to be fully playable with keyboard

Dany-69 2011-01-15 01:10

Re: Remapping keys for WebOS and Nitdroid games
 
Jflatt no way to choice the key and the coordinates of the mouse event? :D
How to modify the file? >.<

Sh1t it work great :D!
the coordinates are not perfect for nova (i've only that now) but it works !
Now you have only to teach us how do this by ourself :D
I'd say to contact the develooper of preenv ... this is an epocal fact :D
I'll take more peple here (from an italian community :P) to give visibility to this thread :D

Great job bro :D

porselinaheart 2011-01-15 01:41

Re: Remapping keys for WebOS and Nitdroid games
 
confirmed Earthworm Jim works, thanks so much jflatt. I love this game!

AgogData 2011-01-16 04:38

Re: Remapping keys for WebOS and Nitdroid games
 
jflatt, in games like NOVA and avatar, when you press W its not straight forward..its slightly tilting to the right and same for X which suppose to be down, any fix for that ?

bbkshine 2011-01-16 06:01

Re: Remapping keys for WebOS and Nitdroid games
 
Nice... I am really Loving u GUys..

btw guys can u guide me How to do it.. as i am a noob

bbkshine 2011-01-16 13:12

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by jflatt (Post 920013)
It figures the first one I try, Assassin's Creed would have problems. It registers really quick clicks, and seems to respond to other keys. I mapped out Earthworm Jim instead, and it works well I think. If you want to check it out, do as root
Code:

wget http://members.cox.net/jflatt/libsdlpre.so
mv libsdlpre.so /home/opt/preenv/lib/libsdlpre.so

The d-pad keys still almost line-up exactly to Assassin's Creed so you can see what this patch does with it. If you keep one finger on the touchscreen, the keyboard keys should work somewhat.

While i am trying it says " mv: cannot rename 'libsdlpre.so': permission denied :(

EDIT : IT WORK WORKS WORKS ASSASIN CREED CAN BE PLAY SIMPLY WITHOUT MULTITOUCH hehe Great Jflatt & Great N900 :)

humble 2011-01-16 13:29

Re: Remapping keys for WebOS and Nitdroid games
 
are you super user? ie "root"

deny_winarto 2011-01-16 14:56

Re: Remapping keys for WebOS and Nitdroid games
 
Quote:

Originally Posted by jflatt (Post 920013)
It figures the first one I try, Assassin's Creed would have problems. It registers really quick clicks, and seems to respond to other keys. I mapped out Earthworm Jim instead, and it works well I think. If you want to check it out, do as root
Code:

wget http://members.cox.net/jflatt/libsdlpre.so
mv libsdlpre.so /home/opt/preenv/lib/libsdlpre.so

The d-pad keys still almost line-up exactly to Assassin's Creed so you can see what this patch does with it. If you keep one finger on the touchscreen, the keyboard keys should work somewhat.

Wow great job jflatt ! :)
Now most games that requrie multitouch should be playable
btw is there any way to make the directional button respond to "hold" function? Because i still can't walk with game gripper

Dany-69 2011-01-16 16:05

Re: Remapping keys for WebOS and Nitdroid games
 
We should have an how too... so the geek and semi-developer could help J to create a set of libsdlpre.so, one for every game and with different calbrations ... :/
I've tried to open the lib with an hex editor.... but it is toooo long to understand where to work for me :/

confusedfella 2011-01-16 18:08

Re: Remapping keys for WebOS and Nitdroid games
 
Can anyone upload a video of playing assassins creed or any game requiring multitouch while using the daemon?

Thanks,

Dany-69 2011-01-16 18:48

Re: Remapping keys for WebOS and Nitdroid games
 
o.o ... why ? don't you trust? XD

Dany-69 2011-01-16 19:01

Re: Remapping keys for WebOS and Nitdroid games
 
Yes but nova doesn't work well :/
And not all the virtual buttons have always a corresponding one on the keyboard .. :/

Crogge 2011-01-16 19:06

Re: Remapping keys for WebOS and Nitdroid games
 
This is a great step to get multitouch games playable on the N900, can't wait for further releases :)

tele 2011-01-16 20:53

Re: Remapping keys for WebOS and Nitdroid games
 
1 Attachment(s)
I've tried Nova, Avatar, Earthworm jim, Real Soccer 2010 and Assassins Creed
All of them are playable :D
Small improvement for Nova and Avatar. When i press "W" the stick move straight up or down. Its a little bit to the right...

Jflatt, you are amazing. Good job buddy :D
let me know if any one wants me to test any other games :D :D

edit: I actually dont have words for Jflatt to thank him. Words are smaller then the amazing job which he has done :D :D

pavi.kant 2011-01-17 03:28

Re: Remapping keys for WebOS and Nitdroid games
 
anyone played assains creed? the pickpocketing thing just doesn't seem to work... can anybody help me pass tht?


All times are GMT. The time now is 20:21.

vBulletin® Version 3.8.8