Page 1 of 1

Event reciever stops FPS camera from moving with arrow keys.

Posted: Fri Dec 15, 2006 12:18 am
by Elfloard2
When i use the Event reciever class to get input from the user, its stops the FPS camera from moving. I have searched the forums and have not seen an answer to this problem. Please tell me how I can fix this.

Posted: Fri Dec 15, 2006 12:29 am
by raven_coda
when your return from the event reciever return false rather then true. That should fix it :)

Posted: Fri Dec 15, 2006 12:40 am
by monkeycracks
bool OnEvent(SEvent event)
{
if(blahhh)
{
random stuff here.
return true;
}
return false;
}


Thats the correct way to use it, fill in the blanks though <_<

Posted: Sat Dec 16, 2006 1:04 am
by Elfloard2
public bool OnEvent(Event e)
{

if (e.Type == EventType.KeyInput)
{
keyboard_down[(int)e.Key] = e.KeyPressedDown;
return true;
}
return false;
}

is my .net code.
Where exactly do i make it false. I have tried everything and it still does not work.

Posted: Sat Dec 16, 2006 2:04 am
by Elfloard2
never mind, i somehow was testing for the wrong key, your suggestions worked out right