1
0
mirror of synced 2024-11-16 23:43:49 +00:00
G940LEDControl/LogitechSDK/ControlsAssignment/Src/LogiButton.cpp

40 lines
684 B
C++
Raw Normal View History

2012-01-04 19:11:07 +00:00
/*
The Logitech Controls Assignment SDK, including all accompanying
documentation, is protected by intellectual property laws. All rights
not expressly granted by Logitech are reserved.
*/
#include "LogiButton.h"
using namespace LogitechControlsAssignmentSDK;
Button::Button()
{
Initialize();
}
Button::~Button()
{
}
VOID Button::SetNumber(CONST INT number)
{
m_number = number;
}
INT Button::GetNumber()
{
return m_number;
}
VOID Button::Initialize()
{
m_number = -1;
m_value = BUTTONS_RANGE_MIN;
m_type = CONTROL_TYPE_BUTTON;
}
BOOL Button::Moved()
{
return (BUTTONS_RANGE_MAX == m_value) ? TRUE : FALSE;
}