Quote:
Originally Posted by renpytom
I'm trying to port my Ren'Py visual novel engine over to the iLiad. So far, I have the port working reasonably well, with SDL displaying properly, and the screen refreshing as necessary.
However, I'm not able to get events from the hardware buttons on my iLiad. I'm able to get mouse events just fine from the stylus, but no keyboard input shows up.
I've searched around a bit, but haven't been able to find documentation on how to get the hardware buttons supported. That probably means I haven't been searching on the right thing... if someone could please point me in the right direction, I'd appreciate it.
Thanks.
|
You have to make the main window of the application to have a class name of "sh", as contentlister expects that. Otherwise the button presses will not reach your application.
Don't know how to set that in SDL, tho (only know about changing the window title...). There apps for the iliad doing it properly for Gtk+, Gtk2-2.x and Qt, but AFAICT yours is the first using SDL, so it's in uncharted territory :-/.. Doing a quick check in google gives no meaningfull results, so you will probably have to set the window class in libsdl.