[Plib-users] Problems with puInput
Brought to you by:
sjbaker
From: Alexander R. <a_r...@in...> - 2000-09-09 18:08:35
|
Hi, I am using puInput Fields in the Net-Part of my GuiMenu (see screenshot tuxfleet.sourceforge.net/gifs/screenshot-gui-connect.gif) The puInput Fields react on keypresses, I can move, edit, delete, when I press return this puInput field gets deactivated, and another one gets activated and the callback function called. But I couldn't get to react puInput on Mouseclicks. Any idea what I could have done wrong? I got plib from cvs, but found no puInput examples there. (I also noticed that doc/index.html is somehow Steve Baker's private index page from woodsoup, and not the plib index page?) For my puInput, I've done (see tuxfleet.sourceforge.net/doxygen/html/class_GuiMenu.html#a15) if((ptype & PUCLASS_INPUT)==PUCLASS_INPUT){ ((puInput *)pob)->acceptInput(); pob->setValue(vdefault); pob->setLegend(vdefault); // pob->setStyle(PUSTYLE_SMALL_BEVELLED); pob->setCallback( cb_net_input_c ); } and (see tuxfleet.sourceforge.net/doxygen/html/class_Engine.html#a31) glutKeyboardFunc ( keyboard_c ) ; glutSpecialFunc ( special_c); glutMouseFunc(mouseevent_c); glutMotionFunc(motionevent_c); glutPassiveMotionFunc(motionevent_c); Any ideas what I missed? Alex -- Alexander Rawass Email: ale...@us... Project Homepage: http://tuxfleet.sourceforge.net ...but some day you'll be a STAR in somebody else's SKY... |