[Agate-svn-commit] SF.net SVN: agate:[1431] trunk/AgateLib/InputLib/Legacy/InputEventArgs.cs
Status: Alpha
Brought to you by:
kanato
From: <ka...@us...> - 2014-08-02 01:04:58
|
Revision: 1431 http://sourceforge.net/p/agate/code/1431 Author: kanato Date: 2014-08-02 01:04:50 +0000 (Sat, 02 Aug 2014) Log Message: ----------- Fix broken unit tests Modified Paths: -------------- trunk/AgateLib/InputLib/Legacy/InputEventArgs.cs Modified: trunk/AgateLib/InputLib/Legacy/InputEventArgs.cs =================================================================== --- trunk/AgateLib/InputLib/Legacy/InputEventArgs.cs 2014-08-02 00:58:06 UTC (rev 1430) +++ trunk/AgateLib/InputLib/Legacy/InputEventArgs.cs 2014-08-02 01:04:50 UTC (rev 1431) @@ -50,32 +50,32 @@ } internal InputEventArgs(KeyCode keyID, KeyModifiers mods) { + Initialize(); + KeyCode = keyID; KeyString = Keyboard.GetKeyString(keyID, mods); Modifiers = mods; - - Initialize(); } [Obsolete("Don't use this one.", true)] internal InputEventArgs(KeyCode keyID, KeyModifiers mods, int repeatCount) : this(keyID, mods) { + Initialize(); + mRepeatCount = repeatCount; } internal InputEventArgs(MouseButton mouseButtons) { - args = new AgateInputEventArgs(); + Initialize(); + MouseButtons = mouseButtons; - - Initialize(); } internal InputEventArgs(int wheelDelta) { - args = new AgateInputEventArgs(); + Initialize(); + WheelDelta = wheelDelta; - - Initialize(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |