MouseEventArgs::sysKeys

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

MouseEventArgs::sysKeys

Postby Injector » Thu Oct 14, 2004 15:20

Maybe (Probably) the mistake is on my side (again), but I cannot get any meaningful information from this bit mask.

I tried it like that:

Code: Select all

if(event.sysKeys & CEGUI::Shift) {
  // do sth. because shift was down when the mouse event was fired
}


but it does not work (the if statement is always true). The debugger tells me that the value of sysKeys is

Code: Select all

sysKeys   3435973836   unsigned int


when no button/key is pressed.

Any idea?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

MouseEventArgs::sysKeys

Postby CrazyEddie » Thu Oct 14, 2004 18:31

Is this for mouse move? Everything else should be okay.

It appears for mouse move I forget to init the field :oops: I'll get this fixed first thing tomorrow.

Thanks for the report.

CE.

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

MouseEventArgs::sysKeys

Postby Injector » Fri Oct 15, 2004 06:27

Yes, only the move. Events generated from button presses/clicks/releases work ok.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

MouseEventArgs::sysKeys

Postby CrazyEddie » Fri Oct 15, 2004 07:36

This is now fixed. Allow a few hours for anon CVS access to sync.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 15 guests