ghoflvhxj Posted February 20, 2012 Share Posted February 20, 2012 Hello, guys. Look again I have seen CEGUI forum. finally, i can understand about cegui.(a little bit) However, i have some problem. I push mouse then, i put mouse. But, in the game, still pushing. So, i use mouseleaves function. but, same. is threre any function which stop to push? http://www.youtube.com/watch?v=N6qb58wfjXA Quote Link to comment Share on other sites More sharing options...
Canardia Posted February 20, 2012 Share Posted February 20, 2012 Maybe you need to tell CEGUI to pull the mouse button up again? if(MouseDown(1)) { mysystem->getSingleton().injectMouseButtonDown(CEGUI::MouseButton::LeftButton); mysystem->getSingleton().injectMouseButtonUp(CEGUI::MouseButton::LeftButton); } Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
ghoflvhxj Posted February 20, 2012 Author Share Posted February 20, 2012 I modify contents, Pleasse see again. Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted February 20, 2012 Share Posted February 20, 2012 Can you please upload you videos or something like that,because it doesn't work at you website. Quote Link to comment Share on other sites More sharing options...
ghoflvhxj Posted February 20, 2012 Author Share Posted February 20, 2012 oh.. i didn't know. i'm sorry. i modify it. Quote Link to comment Share on other sites More sharing options...
smashthewindow Posted February 20, 2012 Share Posted February 20, 2012 You remind me of the times when I was struggling with CEUGI... 간단합니다. 마우스가 눌러져있지 않은 프레임에는 ButtonUp 함수를 호출해주어야합니다. Example: if( MouseDown(LE::MOUSE_LEFT) ) CEGUI::System::getSingleton().injectMouseButtonDown( CEGUI::MouseButton::LeftButton ); else CEGUI::System::getSingleton().injectMouseButtonUp( CEGUI::MouseButton::LeftButton ); if( MouseDown(LE::MOUSE_MIDDLE) ) CEGUI::System::getSingleton().injectMouseButtonDown( CEGUI::MouseButton::MiddleButton ); else CEGUI::System::getSingleton().injectMouseButtonUp( CEGUI::MouseButton::MiddleButton ); if( MouseDown(LE::MOUSE_RIGHT) ) CEGUI::System::getSingleton().injectMouseButtonDown( CEGUI::MouseButton::RightButton ); else CEGUI::System::getSingleton().injectMouseButtonUp( CEGUI::MouseButton::RightButton ); 또한 이것도 나중에 막히실것 같아서 미리 말해두는데 CEGUI Animations 시스템을 사용시에는 CEGUI에 마지막 프레임에서부터 걸린 시간을 입력해 주어야합니다. Example: (CEGUI 렌더링전 매 프레임마다 호출해 주십시요.) CEGUI::System::getSingleton().injectTimePulse( (AppTime()-m_timestep)/1000 ); m_timestep = AppTime(); Quote Blog & Portfolio Current project: moon.chase.star Link to comment Share on other sites More sharing options...
ghoflvhxj Posted February 21, 2012 Author Share Posted February 21, 2012 Ah! Thank you, smashthewindow. I just think that mouseleaves function is like button up. And, your advice is nice information! 학교에서, leave 떠나다 라는 동사여서.. 썻는데.. ㅋㅋ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.