Uh, well, so firstly:
a) I'm some 15 y/o guy who isn't permitted to join the forum, so don't complain about that please.
b) I've like no idea of C, but some things nevertheless seem understandable, so all I write is basically a guess.
The story: Some day I thought using my cam (a cheap 700D) as a torch would be awesome. So I setup some VM to compile ML. However, I didn't get the modules compiled, just an autoexec.bin, but that was still enough to figure out that I just was turning on the redeye option in the settings with my 'revolutionary' code.
Now I thought I could test some stuff for Alex (
#711) so I asked how to compile the modules too, and got it working. However, now I soon forgot about what I wanted because it looked sooo tempting to compile the lua-touch branch - I love touch support and IMHO it would make LUA scripting much more useable.
So I got it compiled and it didn't work.
Then I did my usual debugging (AKA printf) to see where things get stuck. This finally was my code: https://lfil.es/p/31f235a1 And this the output:
Basically how I understood it: the touch func that makes ML open with two fingers has no coordinates - that's why we need this
complicated crap other method, which basically works like this: there's some function in the ROM that has an adress - 0x4D3F8 for example on the eosm - that gets called on a touch event, and it has coordinates and an id and blah.
And now we hijack it, by executing our own function handler when it's called, catch the coordinates & info and execute the listening lua functions with them, and then do the completely normal canon stuff.
And what went wrong? The hijack_touch_cbr_ptr (0x4D858) adress for the 700D is bullshit - it wasn't updated since an older firmware version
What to do? @a1ex and @dmilligan you seemed to do the touch things right? I haven't got IDA, so I think I must ask you to find out the right adresses ;) I can send ya a ROM dump if needed. (To whom?)
Oh and an additional info, there's this lua_dump script or whatever it's called, I ran it and let it dump the touch .. I think it was called table? too, and the up, move and down entries - that should show up as functions (?) just where
nil. Dunno if that piece of info helps.