input boxes UI, keyboard animation
This commit is contained in:
@@ -49,12 +49,17 @@ kEventResult NodeButtonCustom::handle_event(Event* e)
|
||||
mouse_capture();
|
||||
break;
|
||||
case kEventType::MouseUpL:
|
||||
m_color = m_mouse_inside ? color_hover : color_normal;
|
||||
#ifdef __IOS__
|
||||
m_color = color_normal;
|
||||
#else
|
||||
m_color = m_mouse_inside ? color_hover : color_normal;
|
||||
#endif
|
||||
if (m_mouse_inside && on_click != nullptr)
|
||||
on_click(this);
|
||||
mouse_release();
|
||||
break;
|
||||
case kEventType::MouseCancel:
|
||||
m_color = color_normal;
|
||||
mouse_release();
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user