Re: [sdljava-users] joystick events without framebuffer?
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan G. <iva...@ya...> - 2007-08-03 16:23:27
|
Greetings, I think you should be able to but I haven't verified this. What you want to do is call SDL_INIT with only SDL_INIT_JOYSTICK. Have a look here: http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fInit Have not tried this myself though. Let me know if it works. I'm not sure if you are supposed to be able to do this -- but I don't see why not. If you are able to make it work with a simple C program then it should also be possible from sdljava. If it works from C but not sdljava then we need to fix sdljava so it works. -Ivan/ On 7/30/07, C W <wa...@ya...> wrote: > > Greetings, > I just started trying to use sdljava, and I am interested in the > joystick interface. The test code SDLJoystickTest.java works fine, but I'd > like to know if I can interface with a joystick without setting up a > framebuffer. > > If I comment out the lines associated with the framebuffer variable, > then I get an SDLException when SDLEvent.waitEvent() is called. Is this > the expected behavior? If so, is there a way I can use the joystick > interface and events without having the framebuffer. > > Thanks, > Chris > > ------------------------------ > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now<http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow>(it's updated for today's economy) at Yahoo! Games. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > sdljava-users mailing list > sdl...@li... > https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |