Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dyingIsMainstream
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gamejam-gpn15
dyingIsMainstream
Commits
792643fb
Commit
792643fb
authored
Jun 06, 2015
by
Tim Reiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed dash shoulder trigger bug (only LB and RB are accepted now)
parent
94d91b15
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
2 deletions
+1
-2
GamePad.cs
Assets/GamePadInput/GamePad.cs
+0
-0
PlayerInputMapping.cs
Assets/Scripts/PlayerInputMapping.cs
+1
-2
InputManager.asset
ProjectSettings/InputManager.asset
+0
-0
No files found.
Assets/GamePadInput/GamePad.cs
View file @
792643fb
Assets/Scripts/PlayerInputMapping.cs
View file @
792643fb
...
...
@@ -125,8 +125,7 @@ public class PlayerInputMapping : MonoBehaviour
{
if
(
usesGamepad
)
{
return
(
GamePad
.
GetTrigger
(
GamePad
.
Trigger
.
LeftTrigger
,
gamepadIndex
)
>
0.01f
)
||
(
GamePad
.
GetTrigger
(
GamePad
.
Trigger
.
RightTrigger
,
gamepadIndex
)
>
0.01f
)
||
GamePad
.
GetButton
(
GamePad
.
Button
.
LeftShoulder
,
gamepadIndex
)
||
GamePad
.
GetButton
(
GamePad
.
Button
.
RightShoulder
,
gamepadIndex
);
return
GamePad
.
GetButton
(
GamePad
.
Button
.
LeftShoulder
,
gamepadIndex
)
||
GamePad
.
GetButton
(
GamePad
.
Button
.
RightShoulder
,
gamepadIndex
);
}
else
return
Input
.
GetKey
(
keyCodes
[(
int
)
Keys
.
Dash
]);
}
...
...
ProjectSettings/InputManager.asset
View file @
792643fb
No preview for this file type
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