ghoflvhxj Posted February 20, 2012 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
Canardia Posted February 20, 2012 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ย โ
ghoflvhxj Posted February 20, 2012 Author Posted February 20, 2012 I modify contents, Pleasse see again. Quote
ParaToxic Posted February 20, 2012 Posted February 20, 2012 Can you please upload you videos or something like that,because it doesn't work at you website. Quote
ghoflvhxj Posted February 20, 2012 Author Posted February 20, 2012 oh.. i didn't know. i'm sorry. i modify it. Quote
smashthewindow Posted February 20, 2012 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
ghoflvhxj Posted February 21, 2012 Author 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
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.