le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Classes | Macros | Enumerations
gamepad.h File Reference

LightEngine 3D: Native OS gamepad manager. More...

#include "config.h"
#include <stdint.h>

Go to the source code of this file.

Classes

class  LeGamePad
 Handle gamepads through OS native interface. More...
 

Macros

#define LE_GAMEPAD_THRESHOLD   4096.0f
 

Enumerations

enum  LE_GAMEPAD_BUTTONS {
  LE_GAMEPAD_DPAD_UP = 0x0001, LE_GAMEPAD_DPAD_DOWN = 0x0002, LE_GAMEPAD_DPAD_LEFT = 0x0004, LE_GAMEPAD_DPAD_RIGHT = 0x0008,
  LE_GAMEPAD_START = 0x0010, LE_GAMEPAD_BACK = 0x0020, LE_GAMEPAD_LEFT_THUMB = 0x0040, LE_GAMEPAD_RIGHT_THUMB = 0x0080,
  LE_GAMEPAD_LEFT_SHOULDER = 0x0100, LE_GAMEPAD_RIGHT_SHOULDER = 0x0200, LE_GAMEPAD_A = 0x1000, LE_GAMEPAD_B = 0x2000,
  LE_GAMEPAD_X = 0x4000, LE_GAMEPAD_Y = 0x8000
}
 gamepad buttons identifiers (masks) More...
 

Detailed Description

LightEngine 3D: Native OS gamepad manager.

All platforms implementation

Author
Frederic Meslin (fred@.nosp@m.fred.nosp@m.slab..nosp@m.net) http://fredslab.net
Version
1.75

The MIT License (MIT) Copyright (c) 2015-2018 Frédéric Meslin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Macro Definition Documentation

#define LE_GAMEPAD_THRESHOLD   4096.0f

Enumeration Type Documentation

gamepad buttons identifiers (masks)

Enumerator
LE_GAMEPAD_DPAD_UP 
LE_GAMEPAD_DPAD_DOWN 
LE_GAMEPAD_DPAD_LEFT 
LE_GAMEPAD_DPAD_RIGHT 
LE_GAMEPAD_START 
LE_GAMEPAD_BACK 
LE_GAMEPAD_LEFT_THUMB 
LE_GAMEPAD_RIGHT_THUMB 
LE_GAMEPAD_LEFT_SHOULDER 
LE_GAMEPAD_RIGHT_SHOULDER 
LE_GAMEPAD_A 
LE_GAMEPAD_B 
LE_GAMEPAD_X 
LE_GAMEPAD_Y