Morph1984
1559477740
Update hid.h
6 years ago
David Marcec
472210bf72
hid:StartLrAssignmentMode, hid:StopLrAssignmentMode, hid:SwapNpadAssignment
StartLrAssignmentMode and StopLrAssignmentMode don't require any implementation as it's just used for showing the screen of changing the controller orientation if the user wishes to do so. Ever since #1634 this has not been needed as users can specify the controller orientation from the config and swap at any time. We store a private member just in case this gets used for anything extra in the future
7 years ago
Lioncash
c5d41fd812
core/core_timing: Make callback parameters consistent
In some cases, our callbacks were using s64 as a parameter, and in other
cases, they were using an int, which is inconsistent.
To make all callbacks consistent, we can just use an s64 as the type for
late cycles, given it gets rid of the need to cast internally.
While we're at it, also resolve some signed/unsigned conversions that
were occurring related to the callback registration.
7 years ago
Zach Hilman
52ac6419da
vm_manager: Remove cheat-specific ranges from VMManager
7 years ago
Zach Hilman
9d1ab766a0
controllers/npad: Add accessor for current press state
Allows frontend/features to access pressed buttons conveniently as possible
7 years ago
Lioncash
6335bf136f
service/hid: Amend forward declaration of ServiceManager
The SM namespace is within the Service namespace, so this was forward
declaring a type that didn't exist.
7 years ago
Lioncash
48d9d66dc5
core_timing: Rename CoreTiming namespace to Core::Timing
Places all of the timing-related functionality under the existing Core
namespace to keep things consistent, rather than having the timing
utilities sitting in its own completely separate namespace.
7 years ago
Zach Hilman
0c5ede492f
travis: Use correct package for linux Qt5WebEngine
7 years ago
Zach Hilman
621b25b6be
hid: Make Hid service accessible and add GetPressState
7 years ago
David Marcec
56f35ab262
"Better Hid" rework part 1
7 years ago
Lioncash
ec59e4a6c5
hid: Move core include to cpp file
This isn't required to be in the header. Instead, directly include what
this header needs and move it to the cpp file where it belongs.
7 years ago
Lioncash
95103a1b7b
hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts array
Gets rid of the use of a magic constant
8 years ago
Zach Hilman
ac88d3e89f
Narrow down filter of layout configs
8 years ago
Zach Hilman
50153a1cb2
Avoid initializing single-joycon layouts with handheld controller
8 years ago
shinyquagsire23
2f9c0e7c7e
hid: Update all layouts and only show handheld as connected, fixes libnx input for P1_AUTO
8 years ago
David Marcec
c74d24f841
Fix deadlocks caused from HID having too many layouts
Games such as SMO deadlock if we have more than 2 layouts
8 years ago
Max Thomas
266703b50e
hid: Tweaks, Analog Sticks ( #435 )
* hid: Update mouse/keyboard state
* hid: Working analog sticks
* hid: Nits
* hid: Nits
* hid: Update mystery sections
* hid: Tweaks
8 years ago
Lioncash
ccca5e7c28
service: Use nested namespace specifiers where applicable
Tidies up namespace declarations
8 years ago
shinyquagsire23
36b89787ce
hid: Adjust for style guide
8 years ago
shinyquagsire23
d20a883194
hid: Write to all layouts, implement circular buffers, set up controller metadata.
8 years ago
shinyquagsire23
1ea49442f9
hid: Bare-minimum sharedmem input
8 years ago
shinyquagsire23
bb1fcfac33
hid: Remove redundant HID prefix on structs/enums
8 years ago
shinyquagsire23
e08c132175
hid: Add sharedmem structs
8 years ago
bunnei
f4a3d28224
hid: Implement IAppletResource::GetSharedMemoryHandle.
8 years ago
bunnei
72b03025ac
Remove lots more 3DS-specific code.
8 years ago
wwylele
599de29ea3
HID: zero unused PadState bits
9 years ago
wwylele
85116643b2
ir: implement new 3ds HID via ir:rst
9 years ago
wwylele
e02c4b7195
Input: remove unused stuff & clean up
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID
2. removed button handling in EmuWindow
3. removed key_map
4. cleanup #include
9 years ago
wwylele
1d1329af23
HID: use ButtonDevice
9 years ago
Weiyi Wang
0dd007e9ba
hid: remove the touch field from PadState ( #2557 )
9 years ago
wwylele
3c333c53f1
HID: manages updating itself using correct ticks
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
wwylele
03631f9b8f
Refactor input subsystem
10 years ago
wwylele
1d2070d0d3
implement GyroscopeCalibrateParam
10 years ago
wwylele
db151efd0a
implement accel and gyro backend
10 years ago
James Rowe
1bc7829ee9
Move input values into an array
11 years ago
Emmanuel Gil Peyrot
596b7c4f63
Common: Cleanup key_map includes.
11 years ago
purpasmart96
0c62b7b106
HID: Stub DisableAccelerometer and DisableGyroscopeLow
11 years ago
purpasmart96
198c0ddc72
Services: Stubs and minor changes
11 years ago
purpasmart96
5b1757d6a5
HID: Proper Signal Interrupts for EnableAccelerometer & EnableGyroscopeLow along
with a stub for GetSoundVolume
11 years ago
bunnei
e79c27f1e0
HID: Removed unnecessary global variables.
11 years ago
bunnei
85cbccb1d3
HID: Added additional variable comments and some code cleanups.
11 years ago
bunnei
d61b26b79f
HID: Complete refactor of pad/touch input to fix threading issues.
11 years ago
bunnei
432aa1044c
HID: Changed TouchDataEntry `valid` to a BitField and added some doc strings.
11 years ago
bunnei
e9b9f1842b
HID: Added static asserts to check register position in shared memory.
11 years ago
bunnei
1a904ded40
HID: Added functions to emulate the touchpad.
11 years ago
bunnei
3229b048d9
HID: Moved some docstrings to the header.
11 years ago
bunnei
83a66dd701
HID: Refactored shared memory decoding for touchpad support.
11 years ago
Subv
83a8975cb8
Services: Moved the PTM and APT services to their own folder
This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs.
Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
11 years ago