Commit aec24118 authored by Benjamin 'Albsi' Albsmeier's avatar Benjamin 'Albsi' Albsmeier
Browse files

add new version of gamecontrollerdb

parent fe300c6c
Simple DirectMedia Layer Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages warranty. In no event will the authors be held liable for any damages
arising from the use of this software. arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions: freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not 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 claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be in a product, an acknowledgment in the product documentation would be
appreciated but is not required. appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be 2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software. misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution. 3. This notice may not be removed or altered from any source distribution.
This diff is collapsed.
...@@ -88,12 +88,12 @@ namespace gdw{ ...@@ -88,12 +88,12 @@ namespace gdw{
/**prints the mappings*/ /**prints the mappings*/
void print_mapping(); void print_mapping();
/**Returns true every frame, as long as it is down /**Returns true once it is pressed
* controller_id only for multi controller * controller_id only for multi controller
*/ */
bool pressed(std::string mapping, int controller_id = -1); bool pressed(std::string mapping, int controller_id = -1);
/**Returns true once it is pressed /**Returns true every frame, as long as it is down
* controller_id only for multi controller * controller_id only for multi controller
*/ */
bool down(std::string mapping, int controller_id = -1); bool down(std::string mapping, int controller_id = -1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment