CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/UWP/UWPHelpers/InputHelpers.h
Views: 1401
1
// Copyright (c) 2023- PPSSPP Project.
2
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, version 2.0 or later versions.
6
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
// GNU General Public License 2.0 for more details.
11
12
// A copy of the GPL 2.0 should have been included with the program.
13
// If not, see http://www.gnu.org/licenses/
14
15
// Official git repository and contact information can be found at
16
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
17
18
#pragma once
19
#include <string>
20
21
// Input Devices
22
bool isKeyboardAvailable();
23
bool isTouchAvailable();
24
25
// Input Pane
26
void PrepareInputPane();
27
bool isInputPaneVisible();
28
bool ShowInputPane();
29
bool HideInputPane();
30
31
// Text Edit
32
bool isTextEditActive();
33
void ActivateTextEditInput(bool byFocus = false);
34
void DeactivateTextEditInput(bool byFocus = false);
35
bool IgnoreInput(int keyCode);
36
37
// Input DPad
38
void DPadInputState(bool inputState);
39
bool isDPadActive();
40
41
// Keys Status
42
bool IsCapsLockOn();
43
bool IsShiftOnHold();
44
bool IsCtrlOnHold();
45
46
// Misc
47
std::string GetLangRegion();
48
bool IsXBox();
49
bool IsMobile();
50
51
// Get major, minor, build, revision
52
void GetVersionInfo(uint32_t& major, uint32_t& minor, uint32_t& build, uint32_t& revision);
53
54
// Get formatted windows info as string (for preview)
55
std::string GetSystemName();
56
std::string GetWindowsBuild();
57
58