//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// 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;
///
/// Controller Vector2 Event Arguments
/// Represents the value of the input coming from the controler.
///
public class ControllerVec2EventArgs : EventArgs
{
///
/// Vector2 argument
///
public readonly Vector2 value;
///
/// Object Library argument
///
public ObjectLibrary objectLibrary;
///
/// Menu System argument
///
public MenuSystem menuSystem;
///
/// Constructor
///
/// Vector2 value
/// Object Library
/// Menu System
public ControllerVec2EventArgs(Vector2 controlValue, ref ObjectLibrary objLib, ref MenuSystem menuSys)
{
value = controlValue;
objectLibrary = objLib;
menuSystem = menuSys;
}
}
///
/// Controller float Event Arguments
/// Represents the value of the input coming from the controler.
///
public class ControllerFloatEventArgs : EventArgs
{
///
/// Float argument
///
public readonly float value;
///
/// Object Library argument
///
public ObjectLibrary objectLibrary;
///
/// Menu System argument
///
public MenuSystem menuSystem;
///
/// Constructor
///
/// Float value
/// Object Library
/// Menu System
public ControllerFloatEventArgs(float controlValue, ref ObjectLibrary objLib, ref MenuSystem menuSys)
{
value = controlValue;
objectLibrary = objLib;
menuSystem = menuSys;
}
}
///
/// Controller integer Event Arguments
/// Represents the value of the input coming from the controler.
///
public class ControllerIntEventArgs : EventArgs
{
///
/// Integer argument
///
public readonly int value;
///
/// Object Library argument
///
public ObjectLibrary objectLibrary;
///
/// Menu System argument
///
public MenuSystem menuSystem;
///
/// Constructor
///
/// Integer value
/// Object Library
/// Menu System
public ControllerIntEventArgs(int controlValue, ref ObjectLibrary objLib, ref MenuSystem menuSys)
{
value = controlValue;
objectLibrary = objLib;
menuSystem = menuSys;
}
}
///
/// Controller boolean Event Arguments
/// Represents the value of the input coming from the controler.
///
public class ControllerBoolEventArgs : EventArgs
{
///
/// Boolean argument
///
public readonly bool value;
///
/// Object Library argument
///
public ObjectLibrary objectLibrary;
///
/// Menu System argument
///
public MenuSystem menuSystem;
///
/// Constructor
///
/// Boolean value
/// Object Library
/// Menu System
public ControllerBoolEventArgs(bool controlValue, ref ObjectLibrary objLib, ref MenuSystem menuSys)
{
value = controlValue;
objectLibrary = objLib;
menuSystem = menuSys;
}
}
///
/// Controller void Event Arguments
/// Represents the value of the input coming from the controler.
///
public class ControllerVoidEventArgs : EventArgs
{
///
/// Object Library argument
///
public ObjectLibrary objectLibrary;
///
/// Menu System argument
///
public MenuSystem menuSystem;
///
/// Constructor
///
/// Object Library
/// Menu System
public ControllerVoidEventArgs(ref ObjectLibrary objLib, ref MenuSystem menuSys)
{
objectLibrary = objLib;
menuSystem = menuSys;
}
}
}