Mercurial > LightClone
view LightClone/Source/DragController.cpp @ 19:51718795f019
Adding event handling & drag and drop to GuiInterface
author | koryspansel |
---|---|
date | Thu, 15 Sep 2011 12:13:40 -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; }