Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
community
godot
Commits
caf5e921
Unverified
Commit
caf5e921
authored
Jan 04, 2019
by
Wilson E. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed out of bounds axis name access
parent
5e6c6f3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
input_default.cpp
main/input_default.cpp
+5
-3
No files found.
main/input_default.cpp
View file @
caf5e921
...
...
@@ -1084,7 +1084,7 @@ Array InputDefault::get_connected_joypads() {
return
ret
;
}
static
const
char
*
_buttons
[]
=
{
static
const
char
*
_buttons
[
JOY_BUTTON_MAX
]
=
{
"Face Button Bottom"
,
"Face Button Right"
,
"Face Button Left"
,
...
...
@@ -1103,7 +1103,7 @@ static const char *_buttons[] = {
"DPAD Right"
};
static
const
char
*
_axes
[]
=
{
static
const
char
*
_axes
[
JOY_AXIS_MAX
]
=
{
"Left Stick X"
,
"Left Stick Y"
,
"Right Stick X"
,
...
...
@@ -1111,7 +1111,9 @@ static const char *_axes[] = {
""
,
""
,
"L2"
,
"R2"
"R2"
,
""
,
""
};
String
InputDefault
::
get_joy_button_string
(
int
p_button
)
{
...
...
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