File indexing completed on 2024-04-14 04:02:23

0001 /*
0002     This file is part of the KDE games lskat program
0003     SPDX-FileCopyrightText: 2006 Martin Heni <kde@heni-online.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "abstractinput.h"
0009 
0010 // Qt includes
0011 
0012 // KF includes
0013 
0014 // Constructor for the engine
0015 AbstractInput::AbstractInput(QObject *parent)
0016     : QObject(parent)
0017 {
0018     mInputAllowed = false;
0019     mId           = -1;
0020 }
0021 
0022 // Set player id number
0023 void AbstractInput::setId(int id)
0024 {
0025     mId = id;
0026 }
0027 
0028 // Allow or disallow input with this device
0029 void AbstractInput::setInputAllowed(bool allowed)
0030 {
0031     mInputAllowed = allowed;
0032 }
0033 
0034 // Retrieve whether input is allowed or not.
0035 bool AbstractInput::inputAllowed()
0036 {
0037     return mInputAllowed;
0038 }
0039 
0040 #include "moc_abstractinput.cpp"