|
|
@@ -81,7 +81,7 @@ void Slider::Update(float timeStep)
|
|
|
knob_->SetSelected(hovering_);
|
|
|
}
|
|
|
|
|
|
-void Slider::OnHover(const IntVector2& position, const IntVector2& screenPosition, int buttons, int qualifiers, Cursor* cursor)
|
|
|
+void Slider::OnHover(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
|
|
|
{
|
|
|
BorderImage::OnHover(position, screenPosition, buttons, qualifiers, cursor);
|
|
|
|
|
|
@@ -93,7 +93,7 @@ void Slider::OnHover(const IntVector2& position, const IntVector2& screenPositio
|
|
|
Page(position, (bool)(buttons & MOUSEB_LEFT));
|
|
|
}
|
|
|
|
|
|
-void Slider::OnClickBegin(const IntVector2& position, const IntVector2& screenPosition, int button, int buttons, int qualifiers,
|
|
|
+void Slider::OnClickBegin(const IntVector2& position, const IntVector2& screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers,
|
|
|
Cursor* cursor)
|
|
|
{
|
|
|
selected_ = true;
|
|
|
@@ -102,7 +102,7 @@ void Slider::OnClickBegin(const IntVector2& position, const IntVector2& screenPo
|
|
|
Page(position, true);
|
|
|
}
|
|
|
|
|
|
-void Slider::OnClickEnd(const IntVector2& position, const IntVector2& screenPosition, int button, int buttons, int qualifiers,
|
|
|
+void Slider::OnClickEnd(const IntVector2& position, const IntVector2& screenPosition, MouseButton button, MouseButtonFlags buttons, QualifierFlags qualifiers,
|
|
|
Cursor* cursor, UIElement* beginElement)
|
|
|
{
|
|
|
hovering_ = knob_->IsInside(screenPosition, true);
|
|
|
@@ -110,7 +110,7 @@ void Slider::OnClickEnd(const IntVector2& position, const IntVector2& screenPosi
|
|
|
Page(position, false);
|
|
|
}
|
|
|
|
|
|
-void Slider::OnDragBegin(const IntVector2& position, const IntVector2& screenPosition, int buttons, int qualifiers, Cursor* cursor)
|
|
|
+void Slider::OnDragBegin(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags buttons, QualifierFlags qualifiers, Cursor* cursor)
|
|
|
{
|
|
|
UIElement::OnDragBegin(position, screenPosition, buttons, qualifiers, cursor);
|
|
|
|
|
|
@@ -122,8 +122,8 @@ void Slider::OnDragBegin(const IntVector2& position, const IntVector2& screenPos
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Slider::OnDragMove(const IntVector2& position, const IntVector2& screenPosition, const IntVector2& deltaPos, int buttons,
|
|
|
- int qualifiers, Cursor* cursor)
|
|
|
+void Slider::OnDragMove(const IntVector2& position, const IntVector2& screenPosition, const IntVector2& deltaPos, MouseButtonFlags buttons,
|
|
|
+ QualifierFlags qualifiers, Cursor* cursor)
|
|
|
{
|
|
|
if (!editable_ || !dragSlider_ || GetSize() == knob_->GetSize())
|
|
|
return;
|
|
|
@@ -147,9 +147,9 @@ void Slider::OnDragMove(const IntVector2& position, const IntVector2& screenPosi
|
|
|
SetValue(newValue);
|
|
|
}
|
|
|
|
|
|
-void Slider::OnDragEnd(const IntVector2& position, const IntVector2& screenPosition, int dragButtons, int buttons, Cursor* cursor)
|
|
|
+void Slider::OnDragEnd(const IntVector2& position, const IntVector2& screenPosition, MouseButtonFlags dragButtons, MouseButtonFlags releaseButtons, Cursor* cursor)
|
|
|
{
|
|
|
- UIElement::OnDragEnd(position, screenPosition, dragButtons, buttons, cursor);
|
|
|
+ UIElement::OnDragEnd(position, screenPosition, dragButtons, releaseButtons, cursor);
|
|
|
|
|
|
if (dragButtons == MOUSEB_LEFT)
|
|
|
{
|