//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace DarkWynter.Engine.Controllers { using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; //using DarkWynter.Engine.ObjectLib; //using DarkWynter.Engine.Menus; public class ControllerEventArgs : EventArgs { /// /// List of args passed to Controller during Controller.Update() call. /// Key-presses delegates in the Controller override files gain access to the args data for using in binding simple key->object->action sequences. /// Generally you should pass your scenegraph, menusystem, or other object arrays through this pipeline. /// public List args; } /// /// Controller Vector2 Event Arguments /// Represents the value of the input coming from the controler. /// public class ControllerVec2EventArgs : ControllerEventArgs { /// /// Vector2 argument /// public readonly Vector2 value; /// /// Vector2 argument /// public readonly Vector2 value2; /// /// Constructor /// /// Vector2 value /// Object Library /// Menu System public ControllerVec2EventArgs(Vector2 controlValue, Vector2 positionValue, ref List argObjects) { value = controlValue; value2 = positionValue; args = argObjects; } } /// /// Controller float Event Arguments /// Represents the value of the input coming from the controler. /// public class ControllerFloatEventArgs : ControllerEventArgs { /// /// Float argument /// public readonly float value; /// /// Constructor /// /// Float value /// Object Library /// Menu System public ControllerFloatEventArgs(float controlValue, ref List argObjects) { value = controlValue; args = argObjects; } } /// /// Controller integer Event Arguments /// Represents the value of the input coming from the controler. /// public class ControllerIntEventArgs : ControllerEventArgs { /// /// Integer argument /// public readonly int value; /// /// Constructor /// /// Integer value /// Object Library /// Menu System public ControllerIntEventArgs(int controlValue, ref List argObjects) { value = controlValue; args = argObjects; } } /// /// Controller boolean Event Arguments /// Represents the value of the input coming from the controler. /// public class ControllerBoolEventArgs : ControllerEventArgs { /// /// Boolean argument /// public readonly bool value; /// /// Constructor /// /// Boolean value /// Object Library /// Menu System public ControllerBoolEventArgs(bool controlValue, ref List argObjects) { value = controlValue; args = argObjects; } } /// /// Controller void Event Arguments /// Represents the value of the input coming from the controler. /// public class ControllerVoidEventArgs : ControllerEventArgs { /// /// Constructor /// /// Object Library /// Menu System public ControllerVoidEventArgs(ref List argObjects) { args = argObjects; } } }