{"id":26550180,"url":"https://github.com/mikyll/sdl2-controller-tester","last_synced_at":"2025-08-09T21:06:08.134Z","repository":{"id":108931413,"uuid":"374324340","full_name":"mikyll/SDL2-Controller-Tester","owner":"mikyll","description":"A tester for game controller written in C, using SDL2.","archived":false,"fork":false,"pushed_at":"2024-02-12T04:01:28.000Z","size":31358,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-02-12T05:23:34.760Z","etag":null,"topics":["c","controller","game","joystick","ps3","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikyll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-06-06T09:56:05.000Z","updated_at":"2024-02-05T17:11:23.000Z","dependencies_parsed_at":"2023-07-16T21:45:05.832Z","dependency_job_id":null,"html_url":"https://github.com/mikyll/SDL2-Controller-Tester","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikyll%2FSDL2-Controller-Tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikyll%2FSDL2-Controller-Tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikyll%2FSDL2-Controller-Tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikyll%2FSDL2-Controller-Tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikyll","download_url":"https://codeload.github.com/mikyll/SDL2-Controller-Tester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244924790,"owners_count":20532872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","controller","game","joystick","ps3","sdl2"],"created_at":"2025-03-22T07:30:47.138Z","updated_at":"2025-03-22T07:32:36.579Z","avatar_url":"https://github.com/mikyll.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n***\n***\n***\n*** To avoid retyping too much info. Do a search and replace for the following:\n*** github_username, repo_name, twitter_handle, email, project_title, project_description\n--\u003e\n\n\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\\\n[![LinkedIn][linkedin-shield]][linkedin-url]\n[![GitHub followers][github-shield]][github-url]\n \n\u003c/div\u003e\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003c!--\u003ca href=\"https://github.com/mikyll/SDL2-Controller-Tester\"\u003e\n    \u003cimg src=\"images/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e--\u003e\n\n  \u003ch1 align=\"center\"\u003eSDL2 Controller Tester\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\nThis little application has been made while I was attending a tutorial to make games in C using SDL2. Since my purpose will be to implement a game with both keyboard or controller input, I wanted to test which of my PS3 controller feature I could use (spoiler: each one).\u003c/i\u003e\n\u003cbr /\u003e\n\t\u003ca href=\"https://github.com/mikyll/SDL2-Controller-Tester/blob/main/docs/Documentation.md\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n\t\u003cbr /\u003e\n\t\u003cbr /\u003e\n\t\u003ca href=\"#demo\"\u003eView Demo\u003c/a\u003e\n\t·\n\t\u003ca href=\"https://github.com/mikyll/SDL2-Controller-Tester/issues\"\u003eReport Bug | Request Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003e\u003ch2 style=\"display: inline-block\"\u003eTable of Contents\u003c/h2\u003e\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#sdl2-installation\"\u003eSDL2 Installation\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#project-build-linux\"\u003eProject Build (Linux)\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgements\"\u003eAcknowledgements\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\n\u003cp id=\"demo\" align=\"center\"\u003e\n\t\u003ca href=\"https://www.youtube.com/watch?v=phKoKU2lYFs\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/mikyll/SDL2-Controller-Tester/blob/main/gfx/Play Thumbnail.png\" alt=\"Demo Video\" width=\"480\" height=\"360\" border=\"10\" /\u003e\u003c/a\u003e\n\t\u003cbr/\u003e\n\tDemo video\n\u003c/p\u003e\n\n\u003c!--https://user-images.githubusercontent.com/56556806/121173260-e33c7700-c858-11eb-94a0-2544a72af3d9.mp4--\u003e\n\n\n### Built With\n\n#### Written:\n* in C\n* using [SDL2](https://www.libsdl.org/)\n#### Tested:\n* on UNIX system (Debian 9.8 running on a VM)\n* with a PS3 Official Controller: Sony® DualShock 3\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\n* Git\n* SDL2\n* At least one controller compatible with your OS\n\n### SDL2 Installation\n#### Linux\nThe easiest way is to open a terminal and install the packages required. In Debian-based distributions, use Advanced Packaging Tool by entering `apt-get install libsdl2-dev` or every one using `apt-get install libsdl2-*`. In Fedora-based distributions, enter `sudo dnf install SDL2-devel make gcc`.\nOtherwise download the source code from [there](https://www.libsdl.org/release/SDL2-2.0.14.tar.gz), extract the content and cd to the main directory. Then run  `./configure` to configure the installation, `make all` to compile the source, and finally `make install` to install the package.\n\n#### Windows (MinGW)\n1. Download SDL2 source code .zip from [there](https://www.libsdl.org/release/SDL2-2.0.14.zip) and extract the content.\n2. Inside SDL2-2.0.14, depending on your OS, open the 32bit or 64bit directory, respectively **i686-w64-mingw32** or **x86_64-w64-mingw32**.\n3. Then copy the content of the lib subdirectory to the MinGW lib directory (which should be at C:\\MinGW\\lib).\n4. Then, going back to our SDL2 directory, open the include subdirectory and copy the folder **SDL2** to the MinGW include subdirectory.\n**NB**: to compile a project which uses SLD2 libraries, you also need SDL2.dll, which can be found inside the bin subdirectory of the 32 or 64 bit version of the SDL2 root directory (SDL2-2.0.14, the one extracted from the archive). This one has to be put in the directory from which you compile the application.\n\n\n### Project Build (Linux)\n\n1. Clone the repo.\n   ```sh\n   git clone https://github.com/mikyll/SDL2-Controller-Tester\n   cd SDL2-Controller-Tester\n   ```\n2. Install SDL2. In Debian-based distributions:\n   ```sh\n   sudo apt-get install sdl2-*\n   ```\n3. Compile the project using the makefile.\n   ```sh\n   make\n   ```\n\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\n1. Connect the controller via cable.\n2. Run the application.\n3. Spam buttons.\n4. Press the button 0 and 3 (respectively SELECT and START in the case of a PS3 controller) at the same time to make the controller vibrate.\n\nFor more detailed information, please refer to the [Documentation](https://github.com/mikyll/SDL2-Controller-Tester/blob/main/Documentation/Prototype%20Documentation.md).\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/mikyll/SDL2-Controller-Tester/issues) for the full list of proposed features (and known issues).\n\n### Open Issues\n\n### Future developments\n* Add SDL_JoyBallEvent and SDL_JoyHatEvent events in doInput(). \n* Sound effects when connecting or disconnecting a device.\n* GUI with text for details.\n* Interactive demo.\n* Use [SDL Game Controller](https://wiki.libsdl.org/CategoryGameController) support.\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project.\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`).\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`).\n4. Push to the Branch (`git push origin feature/AmazingFeature`).\n5. Open a Pull Request.\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the GNU v3.0 License. See [`LICENSE`](https://github.com/mikyll/SDL2-Controller-Tester/blob/main/LICENSE) for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nMichele Righi - righi.michele98@gmail.com\n\nProject Link: [https://github.com/mikyll/SDL2-Controller-Tester](https://github.com/mikyll/SDL2-Controller-Tester)\n\n\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n## Acknowledgements\n\n* [Parallel Realities](https://www.parallelrealities.co.uk) for the lovely and super detailed tutorials involving game development in C using SDL2, from which I \"stole\" (actually I bought some of the tutorials, they're extremely cheap -just 1$ each one-) the project structure and the makefile.\n* [Othneil Drew](https://github.com/othneildrew) for the amazing [README template](https://github.com/othneildrew/Best-README-Template).\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/mikyll/SDL2-Controller-Tester\n[contributors-url]: https://github.com/mikyll/SDL2-Controller-Tester/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/mikyll/SDL2-Controller-Tester?style=flat\n[forks-url]: https://github.com/mikyll/SDL2-Controller-Tester/network/members\n[stars-shield]: https://img.shields.io/github/stars/mikyll/SDL2-Controller-Tester?style=flat\n[stars-url]: https://github.com/mikyll/SDL2-Controller-Tester/stargazers\n[issues-shield]: https://img.shields.io/github/issues/mikyll/SDL2-Controller-Tester\n[issues-url]: https://github.com/mikyll/SDL2-Controller-Tester/issues\n[license-shield]: https://img.shields.io/github/license/mikyll/SDL2-Controller-Tester\n[license-url]: https://github.com/mikyll/SDL2-Controller-Tester/blob/master/LICENSE\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?logo=linkedin\u0026colorB=0077B5\n[linkedin-url]: https://www.linkedin.com/in/michele-righi/?locale=en_US\n[github-shield]: https://img.shields.io/github/followers/mikyll.svg?style=social\u0026label=Follow\n[github-url]: https://github.com/mikyll\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikyll%2Fsdl2-controller-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikyll%2Fsdl2-controller-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikyll%2Fsdl2-controller-tester/lists"}