コード例 #1
0
 /// <summary>
 /// Constructs the joystick button arguments from a joystick button event.
 /// </summary>
 /// <param name="e">Joystick button event.</param>
 public JoystickButtonEventArgs(JoystickButtonEvent e)
 {
     JoystickId = e.JoystickId;
     Button     = e.Button;
 }
コード例 #2
0
ファイル: EventArgs.cs プロジェクト: mateuscezar/netgore
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Construct the joystick button arguments from a joystick button event
 /// </summary>
 /// <param name="e">Joystick button event</param>
 ////////////////////////////////////////////////////////////
 public JoystickButtonEventArgs(JoystickButtonEvent e)
 {
     JoystickId = e.JoystickId;
     Button = e.Button;
 }