diff --git a/src/wiimotedev/consts.h b/src/wiimotedev/consts.h index 5761a2653..21a8b8dbc 100644 --- a/src/wiimotedev/consts.h +++ b/src/wiimotedev/consts.h @@ -1,21 +1,18 @@ -/********************************************************************************** - * Wiimotedev daemon headers * - * Copyright (C) 2010 Bartłomiej Burdukiewicz * - * Contact: dev.strikeu@gmail.com * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program; if not, see . * - **********************************************************************************/ +/* This file is part of Clementine. + + Clementine is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Clementine is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Clementine. If not, see . +*/ #ifndef WIIMOTEDEV_H #define WIIMOTEDEV_H diff --git a/src/wiimotedev/interface.cpp b/src/wiimotedev/interface.cpp index b4ae63cc6..b03112ec3 100644 --- a/src/wiimotedev/interface.cpp +++ b/src/wiimotedev/interface.cpp @@ -1,21 +1,18 @@ -/********************************************************************************** - * Wiimotedev interface classes * - * Copyright (C) 2010 Bartłomiej Burdukiewicz * - * Contact: dev.strikeu@gmail.com * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program; if not, see . * - **********************************************************************************/ +/* This file is part of Clementine. + + Clementine is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Clementine is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Clementine. If not, see . +*/ #include "wiimotedev/interface.h" diff --git a/src/wiimotedev/interface.h b/src/wiimotedev/interface.h index d13af18a0..8f523c0e6 100644 --- a/src/wiimotedev/interface.h +++ b/src/wiimotedev/interface.h @@ -1,26 +1,23 @@ -/********************************************************************************** - * Wiimotedev interface classes * - * Copyright (C) 2010 Bartłomiej Burdukiewicz * - * Contact: dev.strikeu@gmail.com * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program; if not, see . * - **********************************************************************************/ +/* This file is part of Clementine. + + Clementine is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Clementine is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Clementine. If not, see . +*/ #ifndef WIIMOTEDEV_INTERFACE_H #define WIIMOTEDEV_INTERFACE_H -#include +#include "wiimotedev/consts.h" #include #include diff --git a/src/wiimotedev/proto.h b/src/wiimotedev/proto.h deleted file mode 100644 index 62b9053cc..000000000 --- a/src/wiimotedev/proto.h +++ /dev/null @@ -1,55 +0,0 @@ -/********************************************************************************** - * Wiimotedev daemon headers * - * Copyright (C) 2010 Bartłomiej Burdukiewicz * - * Contact: dev.strikeu@gmail.com * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2.1 of the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * - * Lesser General Public License for more details. * - * * - * You should have received a copy of the GNU Lesser General Public * - * License along with this program; if not, see . * - **********************************************************************************/ - - -#ifndef WIIMOTEDEVPROTO_H -#define WIIMOTEDEVPROTO_H - -/* Typedefs ------------------------------------------------------ */ -typedef unsigned short uint16; - -/* Proto ids ----------------------------------------------------- */ -const uint16 iddbusWiimoteGeneralButtons = 0x01; -const uint16 iddbusWiimoteConnected= 0x02; -const uint16 iddbusWiimoteDisconnected = 0x03; -const uint16 iddbusWiimoteBatteryLife = 0x04; -const uint16 iddbusWiimoteButtons = 0x05; -const uint16 iddbusWiimoteStatus = 0x06; -const uint16 iddbusWiimoteInfrared = 0x07; -const uint16 iddbusWiimoteAcc = 0x08; -const uint16 iddbusNunchukPlugged = 0x09; -const uint16 iddbusNunchukUnplugged = 0x0A; -const uint16 iddbusNunchukButtons = 0x0B; -const uint16 iddbusNunchukStick = 0x0C; -const uint16 iddbusNunchukAcc = 0x0D; -const uint16 iddbusClassicControllerPlugged = 0x0E; -const uint16 iddbusClassicControllerUnplugged = 0x0F; -const uint16 iddbusClassicControllerButtons = 0x10; -const uint16 iddbusClassicControllerLStick = 0x11; -const uint16 iddbusClassicControllerRStick = 0x12; - -const uint16 iddbusResponseBool = 0xF0; -const uint16 iddbusResponseInt8 = 0xF1; - -const uint16 iddbusWiimoteGetRumbleStatus = 0x01; -const uint16 iddbusWiimoteSetLedStatus = 0x02; -const uint16 iddbusWiimoteSetRumbleStatus = 0x03; -const uint16 iddbusWiimoteGetLedStatus = 0x04; - -#endif //WIIMOTEDEVPROTO_H