summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar MonsterDruide12021-06-18 16:15:42 +0200
committerGravatar MonsterDruide12021-09-18 23:22:00 +0200
commitb42c3ce21db249d5e3bc04b4f73202e757da317c (patch)
treec5ccf9e311d2a675b0e2afff3d85ed4654047b5e /src/common
parentMerge pull request #7020 from Moonlacer/remove_audio_stretching (diff)
downloadyuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.gz
yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.xz
yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.zip
input_common/tas: Base playback & recording system
The base playback system supports up to 8 controllers (specified by `PLAYER_NUMBER` in `tas_input.h`), which all change their inputs simulataneously when `TAS::UpdateThread` is called. The recording system uses the controller debugger to read the state of the first controller and forwards that data to the TASing system for recording. Currently, this process sadly is not frame-perfect and pixel-accurate. Co-authored-by: Naii-the-Baf <sfabian200@gmail.com> Co-authored-by: Narr-the-Reg <juangerman-13@hotmail.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/settings.h b/src/common/settings.h
index b1bddb895..29b888f10 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -14,6 +14,7 @@
14#include <utility> 14#include <utility>
15#include <vector> 15#include <vector>
16 16
17#include <input_common/main.h>
17#include "common/common_types.h" 18#include "common/common_types.h"
18#include "common/settings_input.h" 19#include "common/settings_input.h"
19 20
@@ -499,6 +500,7 @@ struct Values {
499 500
500 // Controls 501 // Controls
501 InputSetting<std::array<PlayerInput, 10>> players; 502 InputSetting<std::array<PlayerInput, 10>> players;
503 std::shared_ptr<InputCommon::InputSubsystem> inputSubsystem = NULL;
502 504
503 Setting<bool> use_docked_mode{true, "use_docked_mode"}; 505 Setting<bool> use_docked_mode{true, "use_docked_mode"};
504 506
@@ -512,9 +514,14 @@ struct Values {
512 "motion_device"}; 514 "motion_device"};
513 BasicSetting<std::string> udp_input_servers{"127.0.0.1:26760", "udp_input_servers"}; 515 BasicSetting<std::string> udp_input_servers{"127.0.0.1:26760", "udp_input_servers"};
514 516
517 BasicSetting<bool> tas_enable{false, "tas_enable"};
518 BasicSetting<bool> tas_reset{ false, "tas_reset" };
519 BasicSetting<bool> tas_record{ false, "tas_record" };
520
515 BasicSetting<bool> mouse_panning{false, "mouse_panning"}; 521 BasicSetting<bool> mouse_panning{false, "mouse_panning"};
516 BasicRangedSetting<u8> mouse_panning_sensitivity{10, 1, 100, "mouse_panning_sensitivity"}; 522 BasicRangedSetting<u8> mouse_panning_sensitivity{10, 1, 100, "mouse_panning_sensitivity"};
517 BasicSetting<bool> mouse_enabled{false, "mouse_enabled"}; 523 BasicSetting<bool> mouse_enabled{false, "mouse_enabled"};
524
518 std::string mouse_device; 525 std::string mouse_device;
519 MouseButtonsRaw mouse_buttons; 526 MouseButtonsRaw mouse_buttons;
520 527