Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
488fc264
Commit
488fc264
authored
8 years ago
by
Gregory D
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
6bc6ce05
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Joystick/joysticksdl.h
+0
-34
0 additions, 34 deletions
src/Joystick/joysticksdl.h
with
0 additions
and
34 deletions
src/Joystick/joysticksdl.h
deleted
100644 → 0
+
0
−
34
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment