From 2fa6be77807e1d289579c0bd56f751cfaa17835b Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Thu, 6 Oct 2022 19:09:03 +1100 Subject: [PATCH] License & Readme 'n stuff --- CMakeLists.txt | 2 +- LICENSE.txt | 17 +++++++++++++++++ README.md | 15 +++++++++++++++ gamecontrollerdb.txt | 4 ---- 4 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 LICENSE.txt create mode 100644 README.md delete mode 100644 gamecontrollerdb.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 6391d2c..50ed679 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR) project(padlab C) -set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD 99) set(TARGET padlab) set(SOURCES maths.c maths.h diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..8ace136 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,17 @@ +Copyright (C) 2019-2022 a dinosaur & Gay Pizza Specifications + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. diff --git a/README.md b/README.md new file mode 100644 index 0000000..1520b60 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# PadLab # + +Playground for different analogue stick setups written with SDL2 for graphics and controller support. + +### Building ### +Requirements: +- C99 compiler +- SDL 2.x +- CMake 3.1 or higher + +For *nix: +```shell +cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo +cmake --build build +``` diff --git a/gamecontrollerdb.txt b/gamecontrollerdb.txt deleted file mode 100644 index cf51e11..0000000 --- a/gamecontrollerdb.txt +++ /dev/null @@ -1,4 +0,0 @@ -030000004c050000c405000011810000,PS4 Controller,platform:Linux,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2, -03000000830500006020000010010000,iBuffalo Classic USB Gamepad (SNES),platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b6,start:b7,leftshoulder:b4,rightshoulder:b5,leftx:a0,lefty:a1, -050000004c050000c405000001800000,Wireless Controller,platform:Linux,a:b0,b:b1,x:b3,y:b2,back:b8,guide:b10,start:b9,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5, -050000004c0500006802000000800000,Sony PLAYSTATION(R)3 Controller,platform:Linux,a:b0,b:b1,x:b3,y:b2,back:b8,guide:b10,start:b9,leftstick:b11,rightstick:b12,leftshoulder:b4,rightshoulder:b5,dpup:b13,dpdown:b14,dpleft:b15,dpright:b16,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,