Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
29b6afb8
There was an error fetching the commit references. Please try again later.
Commit
29b6afb8
authored
6 years ago
by
Lioncash
Browse files
Options
Downloads
Patches
Plain Diff
input_common: Add missing override specifiers
parent
a03c644a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/input_common/keyboard.cpp
+1
-1
1 addition, 1 deletion
src/input_common/keyboard.cpp
src/input_common/motion_emu.cpp
+1
-1
1 addition, 1 deletion
src/input_common/motion_emu.cpp
src/input_common/sdl/sdl.cpp
+0
-12
0 additions, 12 deletions
src/input_common/sdl/sdl.cpp
with
2 additions
and
14 deletions
src/input_common/keyboard.cpp
+
1
−
1
View file @
29b6afb8
...
@@ -14,7 +14,7 @@ public:
...
@@ -14,7 +14,7 @@ public:
explicit
KeyButton
(
std
::
shared_ptr
<
KeyButtonList
>
key_button_list_
)
explicit
KeyButton
(
std
::
shared_ptr
<
KeyButtonList
>
key_button_list_
)
:
key_button_list
(
key_button_list_
)
{}
:
key_button_list
(
key_button_list_
)
{}
~
KeyButton
();
~
KeyButton
()
override
;
bool
GetStatus
()
const
override
{
bool
GetStatus
()
const
override
{
return
status
.
load
();
return
status
.
load
();
...
...
This diff is collapsed.
Click to expand it.
src/input_common/motion_emu.cpp
+
1
−
1
View file @
29b6afb8
...
@@ -131,7 +131,7 @@ public:
...
@@ -131,7 +131,7 @@ public:
device
=
std
::
make_shared
<
MotionEmuDevice
>
(
update_millisecond
,
sensitivity
);
device
=
std
::
make_shared
<
MotionEmuDevice
>
(
update_millisecond
,
sensitivity
);
}
}
std
::
tuple
<
Math
::
Vec3
<
float
>
,
Math
::
Vec3
<
float
>>
GetStatus
()
const
{
std
::
tuple
<
Math
::
Vec3
<
float
>
,
Math
::
Vec3
<
float
>>
GetStatus
()
const
override
{
return
device
->
GetStatus
();
return
device
->
GetStatus
();
}
}
...
...
This diff is collapsed.
Click to expand it.
src/input_common/sdl/sdl.cpp
+
0
−
12
View file @
29b6afb8
...
@@ -314,10 +314,6 @@ namespace Polling {
...
@@ -314,10 +314,6 @@ namespace Polling {
class
SDLPoller
:
public
InputCommon
::
Polling
::
DevicePoller
{
class
SDLPoller
:
public
InputCommon
::
Polling
::
DevicePoller
{
public:
public:
SDLPoller
()
=
default
;
~
SDLPoller
()
=
default
;
void
Start
()
override
{
void
Start
()
override
{
// SDL joysticks must be opened, otherwise they don't generate events
// SDL joysticks must be opened, otherwise they don't generate events
SDL_JoystickUpdate
();
SDL_JoystickUpdate
();
...
@@ -341,10 +337,6 @@ private:
...
@@ -341,10 +337,6 @@ private:
class
SDLButtonPoller
final
:
public
SDLPoller
{
class
SDLButtonPoller
final
:
public
SDLPoller
{
public:
public:
SDLButtonPoller
()
=
default
;
~
SDLButtonPoller
()
=
default
;
Common
::
ParamPackage
GetNextInput
()
override
{
Common
::
ParamPackage
GetNextInput
()
override
{
SDL_Event
event
;
SDL_Event
event
;
while
(
SDL_PollEvent
(
&
event
))
{
while
(
SDL_PollEvent
(
&
event
))
{
...
@@ -364,10 +356,6 @@ public:
...
@@ -364,10 +356,6 @@ public:
class
SDLAnalogPoller
final
:
public
SDLPoller
{
class
SDLAnalogPoller
final
:
public
SDLPoller
{
public:
public:
SDLAnalogPoller
()
=
default
;
~
SDLAnalogPoller
()
=
default
;
void
Start
()
override
{
void
Start
()
override
{
SDLPoller
::
Start
();
SDLPoller
::
Start
();
...
...
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