10-05-2012, 03:58 PM | #121 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
You want the z button mate. IIRC for tetris (in fact most of them IIRC)
|
10-05-2012, 04:02 PM | #122 |
Zealot
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
|
what's a z button?
|
Advert | |
|
10-05-2012, 04:05 PM | #123 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
whatever the keycode for z is on a 3. thats the code that should be mapped to the input of the game via whatever button you push to generate it.
How you achieve that is beyond the scope of this tip EDIT: Although I think possibly simply (MIS)using your map codes would do the job Last edited by twobob; 10-05-2012 at 04:06 PM. Reason: misuse |
10-05-2012, 04:09 PM | #124 |
Zealot
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
|
interesting thought, thanks. heading out now so may revisit later.
|
10-05-2012, 04:43 PM | #125 |
Zealot
Posts: 106
Karma: 105764
Join Date: Aug 2012
Device: kindle touch
|
It works. And it would be good to make friends emulator and virtual keyboard.
Last edited by Lydovig; 10-05-2012 at 04:56 PM. |
Advert | |
|
10-05-2012, 09:25 PM | #126 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
There is the basic stuff you will need on the mplayer gui thread.
Grab that code. look though it. replace mplayer with gnuboy, strip logic, remap locations on screen to keycodes, inject to gnuboy, service both threads. should suffice. Let's have it |
10-06-2012, 01:31 AM | #127 |
Zealot
Posts: 106
Karma: 105764
Join Date: Aug 2012
Device: kindle touch
|
twobob
thanks |
10-06-2012, 08:53 AM | #128 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
yep.
In essence (for those interested) the Touchscreen can be managed by the bits in the following code I haven't commented out. More or less with a bit of tidy up this is a decent framework. The update thread would probably need welding into the emulator. I would imagine. There an undoubtedly many ways to skin this problem, I am just trying to point people to working references that can be amended rather than expecting them to "get it all" at once. I prefer myself to see working code and learn from that. Hope that helps, rather than hinders. Spoiler:
Last edited by twobob; 10-06-2012 at 08:55 AM. Reason: why... |
10-06-2012, 09:50 AM | #129 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
/dev/input/event3 should not be assumed. The event number depends on whether you boot main or diags, and which firmware version you are running. It is better to poll the devices to search for the one for the device name you want to use.
|
10-06-2012, 10:02 AM | #130 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Thanks for tip. I do not have the "problem" of entering and testing in DIAGS as my kindle 5 B011 is Sshphobic. It won't play ball so sadly I can not help with this tip.
However as GM said in diags the input would be different. exactly how different I have no idea. but different. |
10-06-2012, 01:12 PM | #131 |
Zealot
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
|
argh, i foolishly hoped i could patch the emulator binary to change the keycodes... foiled by a jump table
|
10-07-2012, 10:52 AM | #132 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
was worth a try
|
10-07-2012, 11:39 AM | #133 |
Zealot
Posts: 124
Karma: 178472
Join Date: Jul 2012
Device: Kindle 4
|
i even spent time staring at the disassembly, to figure out how the jump table worked, and was all set to hex edit the crap out of it when i discovered that the necessary values were outside the bounds of the table.
|
10-07-2012, 11:45 AM | #134 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
I think over the next 1-2 days I should be able to include something configurable. Maybe I'll use my preferred "config file parser" engine again - Lua. I could also provide hooks for program start & stop then plus a hook for screen updates, so adapting it to other platforms would be feasible then. More flexibility on the input side would be possible - like handling the touch screen. Let's see if I can find the time and how it will work out...
|
10-07-2012, 11:47 AM | #135 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Okay just went off and looked at a picture of a k4.
I think that a more simple method will probably rear it's head if you hunt about. The < and > buttons must surely be mappable to keycodes that the app would expect. Where does it dump those events, IS IT THE SAME PLACE AS THE FIVEWAY? if not it's probably not working because it's only servicing one event folder. at that point I would attempt to make the Click of the 5 way the right event(that would be my first thought) IF IT IS in the same events location: I would tweak those codes to be the same as the output of the z on 3 and see what happens. perhaps we could find out what that is. That would probably help. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle VNC viewer (native app, GPLv2) | hawhill | Kindle Developer's Corner | 531 | 12-11-2020 02:55 PM |
Gameboy emulator on PE | bunodosoma | enTourage eDGe | 2 | 11-16-2011 08:19 PM |
Gameboy screen | bookmeal | General Discussions | 7 | 10-03-2011 02:40 PM |
software suggestion: virtualboy(gameboy emulator) | arfarf624 | Kindle Developer's Corner | 3 | 07-27-2011 05:06 AM |
Free (GPLv2) Translation Dictionaries | Elleo | Amazon Kindle | 3 | 01-11-2011 10:57 PM |