diff options
Diffstat (limited to 'src/input_common/main.h')
| -rw-r--r-- | src/input_common/main.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h index 147c310c4..9a969e747 100644 --- a/src/input_common/main.h +++ b/src/input_common/main.h | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | // Copyright 2017 Citra Emulator Project | 1 | // SPDX-FileCopyrightText: 2017 Citra Emulator Project |
| 2 | // Licensed under GPLv2 or any later version | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | // Refer to the license.txt file included. | ||
| 4 | 3 | ||
| 5 | #pragma once | 4 | #pragma once |
| 6 | 5 | ||
| @@ -30,6 +29,7 @@ enum Values : int; | |||
| 30 | } | 29 | } |
| 31 | 30 | ||
| 32 | namespace InputCommon { | 31 | namespace InputCommon { |
| 32 | class Camera; | ||
| 33 | class Keyboard; | 33 | class Keyboard; |
| 34 | class Mouse; | 34 | class Mouse; |
| 35 | class TouchScreen; | 35 | class TouchScreen; |
| @@ -92,9 +92,15 @@ public: | |||
| 92 | /// Retrieves the underlying tas input device. | 92 | /// Retrieves the underlying tas input device. |
| 93 | [[nodiscard]] TasInput::Tas* GetTas(); | 93 | [[nodiscard]] TasInput::Tas* GetTas(); |
| 94 | 94 | ||
| 95 | /// Retrieves the underlying tas input device. | 95 | /// Retrieves the underlying tas input device. |
| 96 | [[nodiscard]] const TasInput::Tas* GetTas() const; | 96 | [[nodiscard]] const TasInput::Tas* GetTas() const; |
| 97 | 97 | ||
| 98 | /// Retrieves the underlying camera input device. | ||
| 99 | [[nodiscard]] Camera* GetCamera(); | ||
| 100 | |||
| 101 | /// Retrieves the underlying camera input device. | ||
| 102 | [[nodiscard]] const Camera* GetCamera() const; | ||
| 103 | |||
| 98 | /** | 104 | /** |
| 99 | * Returns all available input devices that this Factory can create a new device with. | 105 | * Returns all available input devices that this Factory can create a new device with. |
| 100 | * Each returned ParamPackage should have a `display` field used for display, a `engine` field | 106 | * Each returned ParamPackage should have a `display` field used for display, a `engine` field |