view LightClone/Source/DragController.cpp @ 18:33cb6979ac51

More work on GUI system
author koryspansel
date Wed, 14 Sep 2011 17:24:49 -0700
parents 7e3a0ae9c016
children
line wrap: on
line source

/*
 * DragController
 */

#include "DragController.h"

/*
 * DragController
 */
DragController::DragController()
{
	bActive		= false;
	nParameter	= 0;
}

/*
 * Begin
 */
void DragController::Begin(uint32 nValue)
{
	bActive		= true;
	nParameter	= nValue;
}

/*
 * End
 */
uint32 DragController::End()
{
	bActive = false;
	return nParameter;
}

/*
 * Reset
 */
void DragController::Reset()
{
	bActive		= false;
	nParameter	= 0;
}

/*
 * IsActive
 */
bool DragController::IsActive() const
{
	return bActive;
}

/*
 * GetParameter
 */
uint32 DragController::GetParameter() const
{
	return nParameter;
}