You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
727 B
25 lines
727 B
// Copyright 2020 yuzu 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 {
|
|
|
|
/**
|
|
* An motion device factory that takes a keyboard button and uses it as a random
|
|
* motion device.
|
|
*/
|
|
class MotionFromButton final : public Input::Factory<Input::MotionDevice> {
|
|
public:
|
|
/**
|
|
* Creates an motion device from button devices
|
|
* @param params contains parameters for creating the device:
|
|
* - "key": a serialized ParamPackage for creating a button device
|
|
*/
|
|
std::unique_ptr<Input::MotionDevice> Create(const Common::ParamPackage& params) override;
|
|
};
|
|
|
|
} // namespace InputCommon
|