Page 1 of 1

MouseEventArgs::sysKeys

Posted: Thu Oct 14, 2004 15:20
by Injector
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?

MouseEventArgs::sysKeys

Posted: Thu Oct 14, 2004 18:31
by CrazyEddie
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.

MouseEventArgs::sysKeys

Posted: Fri Oct 15, 2004 06:27
by Injector
Yes, only the move. Events generated from button presses/clicks/releases work ok.

MouseEventArgs::sysKeys

Posted: Fri Oct 15, 2004 07:36
by CrazyEddie
This is now fixed. Allow a few hours for anon CVS access to sync.

CE.