moved a few includes to .cpp files

This commit is contained in:
Mathias Panzenböck
2014-02-16 20:06:59 +01:00
parent 04196358fc
commit 1c1f40cdda
3 changed files with 15 additions and 12 deletions

View File

@ -1,13 +1,17 @@
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <stdint.h>
#include <QApplication>
#include "joypad.h"
//for actually interacting with the joystick devices
#include <linux/joystick.h>
#include <linux/input.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
JoyPad::JoyPad( int i, int dev, QObject *parent )
: QObject(parent), joydev(-1), axisCount(0), buttonCount(0), jpw(0), readNotifier(0), errorNotifier(0) {
debug_mesg("Constructing the joypad device with index %d and fd %d\n", i, dev);

View File

@ -11,15 +11,10 @@
//for raising errors
#include "error.h"
//for actually interacting with the joystick devices
#include <linux/joystick.h>
#include <fcntl.h>
#include <unistd.h>
#include <QTextStream>
#include <QHash>
#include <QSocketNotifier>
class JoyPadWidget;
//represents an actual joystick device

View File

@ -1,7 +1,11 @@
#include <errno.h>
#include "layout.h"
#include "config.h"
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
//initialize things and set up an icon :)
LayoutManager::LayoutManager( bool useTrayIcon, const QString &devdir, const QString &settingsDir )
: devdir(devdir), settingsDir(settingsDir),