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
2f9c0e7c
There was an error fetching the commit references. Please try again later.
Commit
2f9c0e7c
authored
6 years ago
by
shinyquagsire23
Browse files
Options
Downloads
Patches
Plain Diff
hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTO
parent
09b8a164
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/service/hid/hid.cpp
+2
-1
2 additions, 1 deletion
src/core/hle/service/hid/hid.cpp
src/core/hle/service/hid/hid.h
+1
-1
1 addition, 1 deletion
src/core/hle/service/hid/hid.h
with
3 additions
and
2 deletions
src/core/hle/service/hid/hid.cpp
+
2
−
1
View file @
2f9c0e7c
...
...
@@ -94,7 +94,6 @@ private:
layout
.
header
.
latest_entry
=
(
layout
.
header
.
latest_entry
+
1
)
%
HID_NUM_ENTRIES
;
ControllerInputEntry
&
entry
=
layout
.
entries
[
layout
.
header
.
latest_entry
];
entry
.
connection_state
=
ConnectionState_Connected
|
ConnectionState_Wired
;
entry
.
timestamp
++
;
// TODO(shinyquagsire23): Is this always identical to timestamp?
entry
.
timestamp_2
++
;
...
...
@@ -103,6 +102,8 @@ private:
if
(
controller
!=
Controller_Handheld
)
continue
;
entry
.
connection_state
=
ConnectionState_Connected
|
ConnectionState_Wired
;
// TODO(shinyquagsire23): Set up some LUTs for each layout mapping in the future?
// For now everything is just the default handheld layout, but split Joy-Con will
// rotate the face buttons and directions for certain layouts.
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/hid/hid.h
+
1
−
1
View file @
2f9c0e7c
...
...
@@ -12,7 +12,7 @@ namespace Service::HID {
// Begin enums and output structs
constexpr
u32
HID_NUM_ENTRIES
=
17
;
constexpr
u32
HID_NUM_LAYOUTS
=
2
;
constexpr
u32
HID_NUM_LAYOUTS
=
7
;
constexpr
s32
HID_JOYSTICK_MAX
=
0x8000
;
constexpr
s32
HID_JOYSTICK_MIN
=
-
0x8000
;
...
...
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