summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu
AgeCommit message (Collapse)Author
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-05-24Expose Control Expression variables to mappings UIFiloppi
-add a way to reset their value (from the mappings UI) -fix "memory leak" where they would never be cleaned, one would be created every time you wrote a character after a "$" -fix ability to create variables with an empty string by just writing "$" (+added error for it) -Add $ operator to the UI operators list, to expose this functionality even more
2021-05-19IMUGyroscope: make GetState update optional (on by default), fix const, ↵Filoppi
clean code My future PRs will split the UI state from the Emulation State of some of these emulated controller values and this readies the code for it.
2021-05-19InputCommon: improve code that returns a controller attachment indexFiloppi
casting a value to a u32 when it's originally an int, and it's exposed as int to users, could end up in cases where a negative number would result as a positive one. This doesn't really affect the value range of the attachment enum, still I think the code was wrong. Heavily tested.
2021-05-19IMUAccelerometer: consistency of BoundCount checksFiloppi
Similar to the guitar, only control[0] was checked, and that felt random.
2021-05-14Merge pull request #9688 from Filoppi/input_cleanupScott Mansell
Input cleanup
2021-05-12StickGate: add custom clamp valueFiloppi
Works exactly as before by default. It will be used by my upcoming input PRs.
2021-05-12InputCommon: clamp the attachment setting max to its actual enum maxFiloppi
NumericSettings support a max, so let's use it. It might not do much now, but the max and min values will be used to give visual feeback in the UI in one of my upcoming input PRs
2021-05-12Add mixed comments to input code, make some tooltip clearerFiloppi
2021-05-12InputCommon: fix serialization of control expression with line breaksFiloppi
The control expression editor allows line breaks, but the serialization was losing anything after the first line break (/r /n). Instead of opting to encode them and decode them on serialization (which I tried but was not safe, as it would lose /n written in the string by users), I opted to replace them with a space.
2021-05-10InputCommon: follow coding conventions and rename GetState() to UpdateState()Filoppi
And remove useless include
2021-05-10InputCommon: add a ton of missing constsFiloppi
fix some related grammar errors only the ButtonManager required code changes
2021-03-17InputCommon: Allow for partial gyro mapping; for Free Look, this allows you ↵iwubcode
to only pitch or only yaw
2021-02-27InputCommon: reduce number of image loads and texture cache invalidations by ↵iwubcode
only running dynamic input textures once for all controllers
2021-01-27rename InputCommon/ControllerInterface/Device to CoreDeviceShawn Hoffman
2021-01-05Fix a couple of typosFilippo Tarpini
[committer note: fixed commit message style]
2020-11-17Remove a redundant i18n commentJosJuice
2020-11-03Virtual Notch settings and UI for octagonal stickNick Michael
2020-10-20Merge pull request #9142 from jordan-woyak/expose-fovLéo Lam
WiimoteEmu: Expose IR camera FOV to adjust IMU pointing sensitivity.
2020-10-20Merge pull request #8318 from iwubcode/dynamic_input_texturesLéo Lam
InputCommon: Dynamic Input Textures
2020-10-20Merge pull request #9096 from jordan-woyak/calibration-cleanupLéo Lam
ControllerEmu: Improve and simplify UpdateCalibrationData.
2020-10-19WiimoteEmu: Tweak IMUCursor total yaw setting tool-tip.Jordan Woyak
2020-10-03InputCommon: Introducing the "Dynamic Input Texture". Configuration links ↵iwubcode
an emulated input action to an image based on what host key is defined for that emulated input. Specific regions are called out in configuration that mark where to replace an input button with a host key image.
2020-09-28ControllerEmu: Increase "IMUPointer" "Total Yaw" default value to match that ↵Jordan Woyak
of regular "Point" settings. Removed "Total Yaw" from included Wii remote input profile to take on the default value.
2020-09-28ControllerEmu: Increase Total Yaw/Pitch default values to compensate for new ↵Jordan Woyak
FOV and to reach screen edges in the Wii Menu.
2020-09-19ControllerEmu: Improve and simplify UpdateCalibrationData.Jordan Woyak
2020-08-08Fix various -Wshadow warningsTillmann Karras
2020-07-12Merge pull request #8936 from jordan-woyak/wiimote-extension-calibration-fixLC
ControllerInterface/Wiimote: Provide fallback values for extensions with bad calibration.
2020-07-11WiimoteEmu: Allow writes of the i2c bus to play speaker data.Jordan Woyak
2020-07-11ControllerInterface/Wiimote: Provide fallback values for extensions with bad ↵Jordan Woyak
calibration data.
2020-04-27Android: Use touch emulation of IR by defaultJosJuice
While having motion control emulation of IR enabled by default makes sense in situations like using a DualShock 4 on a PC, Android has the additional option of touch emulation of IR which seems to be better liked, and the default value which was chosen with PC in mind was carried over to Android without any particular consideration. This change disables motion control emulation of IR by default on Android only.
2020-02-25InputCommon: Specify ini value default when saving calibration "center".Jordan Woyak
2020-02-25InputCommon: Clamp calibration values within square shape.Jordan Woyak
2020-02-25InputCommon: RoundStickGate's ideal sample count can be 1.Jordan Woyak
2020-02-24DolphinQt: Clean up mapping indicator code and draw lines on "pixel centers".Jordan Woyak
2020-02-24InputCommon: Mark GetStateLock with [[nodiscard]] and fix discarding calls.Jordan Woyak
2020-02-17InputCommon: Add real Wii Remote support to ControllerInterface. Add option ↵Jordan Woyak
to connect additional Wii Remotes.
2020-02-17InputCommon: Add types to ControllerEmu that represent raw controller inputs ↵Jordan Woyak
and calibration data to calculate normalized input values.
2020-02-17InputCommon: Add calibration functionality to IMUGyroscope.Jordan Woyak
2020-02-17InputCommon: Add "Dead Zone" setting to raw gyro inputs.Jordan Woyak
2020-02-09InputCommon: Clean up creation of inputs.Jordan Woyak
2020-02-10Merge pull request #8624 from jordan-woyak/setting-expression-input-gateTilka
InputCommon: Only update setting expressions when the input gate is enabled.
2020-02-09InputCommon: Only update setting expressions when the input gate is enabled.Jordan Woyak
2020-02-09InputCommon: Eliminate some duplicated button threshold logic.Jordan Woyak
2020-02-08InputCommon: Allow Wii remote extension to be set with an input expression.Jordan Woyak
2020-02-08InputCommon: Allow controller settings specified with input expresions.Jordan Woyak
2020-01-18InputCommon: List IMUAccelerometer's Up/Down inputs first for consistency.Jordan Woyak
2019-11-22Merge pull request #8485 from lioncash/imuJosJuice
InputCommon/IMU*: Remove unnecessary includes
2019-11-22InputCommon/IMU*: Remove unnecessary includesLioncash
Trims out unnecessary includes to avoid unnecessary header dependencies. This also resolves indirect inclusions of <optional> within IMUAccelerometer.h and IMUGyroscope.h
2019-11-22InputCommon: Make use of fmt where applicableLioncash
Continues the migration over to fmt