From a44747d0c239b04ab492baa712521083ce0ff59b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 09:51:32 +0000 Subject: [PATCH] Fix for "unknown reference to KeyboardDevice" or on Mono. --- Source/Examples/Tests/S04_Input_Logger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Examples/Tests/S04_Input_Logger.cs b/Source/Examples/Tests/S04_Input_Logger.cs index 4139a4c3..2750f5b8 100644 --- a/Source/Examples/Tests/S04_Input_Logger.cs +++ b/Source/Examples/Tests/S04_Input_Logger.cs @@ -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)