diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-30 07:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 07:59:50 +0100 |
commit | 7bc3e80399d62aabe4acbba094d0fff23a187186 (patch) | |
tree | ac12ca41f34fdda51992fedfeb55b169dedcfcaf /src/input_common/motion_emu.h | |
parent | Merge pull request #5005 from ReinUsesLisp/div-ceil (diff) | |
parent | Implement full mouse support (diff) | |
download | yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar.gz yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar.bz2 yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar.lz yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar.xz yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.tar.zst yuzu-7bc3e80399d62aabe4acbba094d0fff23a187186.zip |
Diffstat (limited to 'src/input_common/motion_emu.h')
-rw-r--r-- | src/input_common/motion_emu.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/input_common/motion_emu.h b/src/input_common/motion_emu.h deleted file mode 100644 index 7a7e22467..000000000 --- a/src/input_common/motion_emu.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include "core/frontend/input.h" - -namespace InputCommon { - -class MotionEmuDevice; - -class MotionEmu : public Input::Factory<Input::MotionDevice> { -public: - /** - * Creates a motion device emulated from mouse input - * @param params contains parameters for creating the device: - * - "update_period": update period in milliseconds - * - "sensitivity": the coefficient converting mouse movement to tilting angle - */ - std::unique_ptr<Input::MotionDevice> Create(const Common::ParamPackage& params) override; - - /** - * Signals that a motion sensor tilt has begun. - * @param x the x-coordinate of the cursor - * @param y the y-coordinate of the cursor - */ - void BeginTilt(int x, int y); - - /** - * Signals that a motion sensor tilt is occurring. - * @param x the x-coordinate of the cursor - * @param y the y-coordinate of the cursor - */ - void Tilt(int x, int y); - - /** - * Signals that a motion sensor tilt has ended. - */ - void EndTilt(); - -private: - std::weak_ptr<MotionEmuDevice> current_device; -}; - -} // namespace InputCommon |