Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
488fc264
Commit
488fc264
authored
Oct 14, 2016
by
Gregory D
Committed by
GitHub
Oct 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
6bc6ce05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
joysticksdl.h
src/Joystick/joysticksdl.h
+0
-34
No files found.
src/Joystick/joysticksdl.h
deleted
100644 → 0
View file @
6bc6ce05
#ifndef JOYSTICKSDL_H
#define JOYSTICKSDL_H
#include "Joystick.h"
#include "Vehicle.h"
#include "MultiVehicleManager.h"
#include <SDL.h>
class
JoystickSDL
:
public
Joystick
{
public:
JoystickSDL
(
const
QString
&
name
,
int
axisCount
,
int
buttonCount
,
int
hatCount
,
int
index
,
bool
isGameController
,
MultiVehicleManager
*
multiVehicleManager
);
static
QMap
<
QString
,
Joystick
*>
discover
(
MultiVehicleManager
*
_multiVehicleManager
);
private:
static
void
_loadGameControllerMappings
();
bool
_open
()
final
;
void
_close
()
final
;
bool
_update
()
final
;
bool
_getButton
(
int
i
)
final
;
int
_getAxis
(
int
i
)
final
;
uint8_t
_getHat
(
int
hat
,
int
i
)
final
;
SDL_Joystick
*
sdlJoystick
;
SDL_GameController
*
sdlController
;
bool
_isGameController
;
int
_index
;
///< Index for SDL_JoystickOpen
};
#endif // JOYSTICKSDL_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment