~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/qteventfeeder.cpp

  • Committer: Alan Griffiths
  • Date: 2015-07-29 11:33:48 UTC
  • mfrom: (347 qtmir)
  • mto: This revision was merged to the branch mainline in revision 355.
  • Revision ID: alan@octopull.co.uk-20150729113348-qot92li275wru8e1
mergeĀ lp:qtmir

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
    delete mQtWindowSystem;
220
220
}
221
221
 
222
 
void QtEventFeeder::dispatch(MirEvent const& event)
 
222
bool QtEventFeeder::dispatch(MirEvent const& event)
223
223
{
224
224
    auto type = mir_event_get_type(&event);
225
225
    if (type != mir_event_type_input)
226
 
        return;
 
226
        return false;
227
227
    auto iev = mir_event_get_input_event(&event);
228
228
 
229
229
    switch (mir_input_event_get_type(iev)) {
238
238
    default:
239
239
        break;
240
240
    }
 
241
 
 
242
    return true;
241
243
}
242
244
 
243
245
namespace
423
425
    // not used
424
426
}
425
427
 
426
 
void QtEventFeeder::configuration_changed(std::chrono::nanoseconds when)
427
 
{
428
 
    Q_UNUSED(when);
429
 
}
430
 
 
431
 
void QtEventFeeder::device_reset(int32_t device_id, std::chrono::nanoseconds when)
432
 
{
433
 
    Q_UNUSED(device_id);
434
 
    Q_UNUSED(when);
435
 
}
436
 
 
437
428
void QtEventFeeder::validateTouches(ulong timestamp,
438
429
        QList<QWindowSystemInterface::TouchPoint> &touchPoints)
439
430
{