License & Readme 'n stuff

This commit is contained in:
a dinosaur 2022-10-06 19:09:03 +11:00
parent b7dea03e52
commit 2fa6be7780
4 changed files with 33 additions and 5 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.1 FATAL_ERROR) cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(padlab C) project(padlab C)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 99)
set(TARGET padlab) set(TARGET padlab)
set(SOURCES set(SOURCES
maths.c maths.h maths.c maths.h

17
LICENSE.txt Normal file
View File

@ -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.

15
README.md Normal file
View File

@ -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
```

View File

@ -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,