예제 #1
0
//--------------------------------------------------------
//--------------------------------------------------------
void GestureSystem::OnPointerScrolled(const Pointer& in_pointer, f64 in_timestamp, const Core::Vector2& in_delta, Filter& in_filter)
{
    if (in_filter.IsFiltered() == false)
    {
        std::unique_lock<std::recursive_mutex> lock(m_mutex);
        m_gestures.lock();

        for (const auto& gesture : m_gestures)
        {
            gesture->OnPointerScrolled(in_pointer, in_timestamp, in_delta);
        }

        m_gestures.unlock();
    }
}
예제 #2
0
//--------------------------------------------------------
//--------------------------------------------------------
void GestureSystem::OnPointerDown(const Pointer& in_pointer, f64 in_timestamp, Pointer::InputType in_inputType, Filter& in_filter)
{
    if (in_filter.IsFiltered() == false)
    {
        std::unique_lock<std::recursive_mutex> lock(m_mutex);
        m_gestures.lock();

        for (const auto& gesture : m_gestures)
        {
            gesture->OnPointerDown(in_pointer, in_timestamp, in_inputType);
        }

        m_gestures.unlock();
    }
}