Fix for "unknown reference to KeyboardDevice" or on Mono.

This commit is contained in:
the_fiddler 2008-01-15 09:51:32 +00:00
parent 2567fc266d
commit a44747d0c2

View file

@ -140,12 +140,12 @@ namespace Examples.Tests
ControlLogKeyboard ControlLogKeyboardDown =
delegate(GameWindow input_window, S04_Input_Logger control, KeyboardDevice sender, Key key)
{
control.keyboardListBoxes[(sender as KeyboardDevice).DeviceID].Items.Add(key);
control.keyboardListBoxes[sender.DeviceID].Items.Add(key);
};
ControlLogKeyboard ControlLogKeyboardUp =
delegate(GameWindow input_window, S04_Input_Logger control, KeyboardDevice sender, Key key)
{
control.keyboardListBoxes[(sender as KeyboardDevice).DeviceID].Items.Remove(key);
control.keyboardListBoxes[sender.DeviceID].Items.Remove(key);
};
void hidden_UpdateFrame(object sender, UpdateFrameEventArgs e)