[SDL] iPhone

Richard Burgess rickb at rickb.com
Wed Aug 8 05:17:21 PDT 2007


We're totally in wild west hacker land at the moment. It was easy  
enough to decode all the Objective-C frameworks with class-dump, but  
the straight C functions are a little trickier. I'm now a little  
stuck at the event handling code. I used nm to get a list of all the  
C accessor functions for the event struct but I don't know of an easy  
way to determine the arguments and return values short of looking at  
the assembly (and the other option of directly debugging is a little  
out of the question at the moment :). Making things even more  
challenging is that the linker appears to create an exe regardless of  
any undefined functions. I can make some educated guess based on the  
way Apple does their API's, but that's about it.

Looking at the other iPhone apps at the moment, it's clear we're all  
in the same boat. :) That SNES emulator only uses one event accessor  
function which clearly returns the mouse down location, looks like  
I'll have to figure out all the other events. Some interesting ones  
too, like a "Gesture" event. 


More information about the SDL mailing list