Jump to content

click problem


ghoflvhxj
 Share

Recommended Posts

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);

}

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

You remind me of the times when I was struggling with CEUGI... biggrin.png

 

간단합니다. 마우스가 눌러져있지 않은 프레임에는 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();

Blog & Portfolio

 

Current project: moon.chase.star

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...