/****************************************************************************
** Meta object code from reading C++ file 'inputdriver.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.11)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../../../../src/decaf-qt/src/inputdriver.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'inputdriver.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.11. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_InputDriver_t {
    QByteArrayData data[20];
    char stringdata0[231];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_InputDriver_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_InputDriver_t qt_meta_stringdata_InputDriver = {
    {
QT_MOC_LITERAL(0, 0, 11), // "InputDriver"
QT_MOC_LITERAL(1, 12, 17), // "joystickConnected"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 14), // "SDL_JoystickID"
QT_MOC_LITERAL(4, 46, 2), // "id"
QT_MOC_LITERAL(5, 49, 16), // "SDL_JoystickGUID"
QT_MOC_LITERAL(6, 66, 4), // "guid"
QT_MOC_LITERAL(7, 71, 11), // "const char*"
QT_MOC_LITERAL(8, 83, 4), // "name"
QT_MOC_LITERAL(9, 88, 20), // "joystickDisconnected"
QT_MOC_LITERAL(10, 109, 18), // "joystickButtonDown"
QT_MOC_LITERAL(11, 128, 6), // "button"
QT_MOC_LITERAL(12, 135, 18), // "joystickAxisMotion"
QT_MOC_LITERAL(13, 154, 4), // "axis"
QT_MOC_LITERAL(14, 159, 5), // "value"
QT_MOC_LITERAL(15, 165, 17), // "joystickHatMotion"
QT_MOC_LITERAL(16, 183, 3), // "hat"
QT_MOC_LITERAL(17, 187, 20), // "configurationUpdated"
QT_MOC_LITERAL(18, 208, 6), // "update"
QT_MOC_LITERAL(19, 215, 15) // "settingsChanged"

    },
    "InputDriver\0joystickConnected\0\0"
    "SDL_JoystickID\0id\0SDL_JoystickGUID\0"
    "guid\0const char*\0name\0joystickDisconnected\0"
    "joystickButtonDown\0button\0joystickAxisMotion\0"
    "axis\0value\0joystickHatMotion\0hat\0"
    "configurationUpdated\0update\0settingsChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_InputDriver[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   54,    2, 0x06 /* Public */,
       9,    2,   61,    2, 0x06 /* Public */,
      10,    3,   66,    2, 0x06 /* Public */,
      12,    4,   73,    2, 0x06 /* Public */,
      15,    4,   82,    2, 0x06 /* Public */,
      17,    0,   91,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      18,    0,   92,    2, 0x08 /* Private */,
      19,    0,   93,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7,    4,    6,    8,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5,    4,    6,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, QMetaType::Int,    4,    6,   11,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, QMetaType::Int, QMetaType::Float,    4,    6,   13,   14,
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, QMetaType::Int, QMetaType::Int,    4,    6,   16,   14,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void InputDriver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<InputDriver *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->joystickConnected((*reinterpret_cast< SDL_JoystickID(*)>(_a[1])),(*reinterpret_cast< SDL_JoystickGUID(*)>(_a[2])),(*reinterpret_cast< const char*(*)>(_a[3]))); break;
        case 1: _t->joystickDisconnected((*reinterpret_cast< SDL_JoystickID(*)>(_a[1])),(*reinterpret_cast< SDL_JoystickGUID(*)>(_a[2]))); break;
        case 2: _t->joystickButtonDown((*reinterpret_cast< SDL_JoystickID(*)>(_a[1])),(*reinterpret_cast< SDL_JoystickGUID(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 3: _t->joystickAxisMotion((*reinterpret_cast< SDL_JoystickID(*)>(_a[1])),(*reinterpret_cast< SDL_JoystickGUID(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< float(*)>(_a[4]))); break;
        case 4: _t->joystickHatMotion((*reinterpret_cast< SDL_JoystickID(*)>(_a[1])),(*reinterpret_cast< SDL_JoystickGUID(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 5: _t->configurationUpdated(); break;
        case 6: _t->update(); break;
        case 7: _t->settingsChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (InputDriver::*)(SDL_JoystickID , SDL_JoystickGUID , const char * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::joystickConnected)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (InputDriver::*)(SDL_JoystickID , SDL_JoystickGUID );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::joystickDisconnected)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (InputDriver::*)(SDL_JoystickID , SDL_JoystickGUID , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::joystickButtonDown)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (InputDriver::*)(SDL_JoystickID , SDL_JoystickGUID , int , float );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::joystickAxisMotion)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (InputDriver::*)(SDL_JoystickID , SDL_JoystickGUID , int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::joystickHatMotion)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (InputDriver::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&InputDriver::configurationUpdated)) {
                *result = 5;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject InputDriver::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_InputDriver.data,
    qt_meta_data_InputDriver,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *InputDriver::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *InputDriver::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_InputDriver.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "decaf::InputDriver"))
        return static_cast< decaf::InputDriver*>(this);
    return QObject::qt_metacast(_clname);
}

int InputDriver::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void InputDriver::joystickConnected(SDL_JoystickID _t1, SDL_JoystickGUID _t2, const char * _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void InputDriver::joystickDisconnected(SDL_JoystickID _t1, SDL_JoystickGUID _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void InputDriver::joystickButtonDown(SDL_JoystickID _t1, SDL_JoystickGUID _t2, int _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void InputDriver::joystickAxisMotion(SDL_JoystickID _t1, SDL_JoystickGUID _t2, int _t3, float _t4)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void InputDriver::joystickHatMotion(SDL_JoystickID _t1, SDL_JoystickGUID _t2, int _t3, int _t4)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void InputDriver::configurationUpdated()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
