Welcome! Log In Create A New Profile

Advanced

[solved]SDL_PollEvents never returns events

Posted by dashxdr 
[solved]SDL_PollEvents never returns events
September 22, 2010 08:56PM
I'm trying to port some simple programs under SDL to the wii, but I never get any events at all back. No events of any kind. I get graphics output, screen updates, the programs run fine, just no events. If I hold the power button on the Wii remote for a few seconds, the Wii powers down, that's the limit of the user input I can manage.

My devkitPPC gcc reports:
gcc version 4.4.2 (devkitPPC release 19)

I'm using the SDL_Wii binary 11-28-2009 from this page:
[code.google.com]

which I got to from this page:
[wiibrew.org]

I'm just linking with "-lSDL and -lwiikeyboard" since I don't need any of the other libraries.

I don't have any keyboard attached.

Thanks for any advice.



Edited 1 time(s). Last edit at 09/23/2010 03:41AM by dashxdr.
Re: SDL_PollEvents never returns events
September 23, 2010 01:55AM
Quote
dashxdr
I'm trying to port some simple programs under SDL to the wii, but I never get any events at all back.

The issue was I wasn't calling SDL_JoystickOpen(0) during initialization.

SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK)
SDL_JoystickOpen(0);

Now I'm getting some events...
Sorry, only registered users may post in this forum.

Click here to login