Re: [Plib-users] Newbee with puInput Trouble
Brought to you by:
sjbaker
From: Fabricio G. <fgu...@ya...> - 2003-05-19 17:23:15
|
Thanks Eero... that worked! -Fabricio --- Eero Pajarre <epa...@ko...> wrote: > Fabricio Guzman wrote: > > > Hey Gang, > > > > I'm running the "Hello World" program for PUI with > a > > slight modification (I've added a puInput object). > > > The program compiles and runs but when I select > the > > puInput object and type away nothing shows up (the > > cursor is present but doesn't move). Here's my > > modified code from the "Hello World" program > > (everything else is identical to the original > > program): > > > > You are propably missing the keyboard connection: > > You need functions like: > static void glut_keyboard_func ( unsigned char key, > int x, int y ) > { > puKeyboard(key,PU_DOWN); > } > > static void glut_special_func ( int key, int x, int > y ) > { > > puKeyboard(key+PU_KEY_GLUT_SPECIAL_OFFSET,PU_DOWN); > } > > > and connect them to Glut before entering MainLoop > like: > > glutKeyboardFunc(glut_keyboard_func); > glutSpecialFunc(glut_special_func); > > > > Eero > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: If flattening out > C++ or Java > code to make your application fit in a relational > database is painful, > don't do it! Check out ObjectStore. Now part of > Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |