mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-02-02 04:24:31 +00:00
get camera id from config
This commit is contained in:
parent
c6cf33c295
commit
ced6ed76e9
@ -154,6 +154,7 @@ static ConfigEntry<bool> isMotionControlsEnabled(true);
|
||||
static ConfigEntry<bool> useUnifiedInputConfig(true);
|
||||
static ConfigEntry<string> defaultControllerID("");
|
||||
static ConfigEntry<bool> backgroundControllerInput(false);
|
||||
static ConfigEntry<int> openCVCameraId(-1);
|
||||
|
||||
// Audio
|
||||
static ConfigEntry<string> micDevice("Default Device");
|
||||
@ -348,6 +349,13 @@ std::string getPadSpkOutputDevice() {
|
||||
return padSpkOutputDevice.get();
|
||||
}
|
||||
|
||||
void SetOpenCVCameraId(s32 id) {
|
||||
|
||||
}
|
||||
s32 GetOpenCVCameraId() {
|
||||
|
||||
}
|
||||
|
||||
double getTrophyNotificationDuration() {
|
||||
return trophyNotificationDuration.get();
|
||||
}
|
||||
@ -898,6 +906,7 @@ void load(const std::filesystem::path& path, bool is_game_specific) {
|
||||
useUnifiedInputConfig.setFromToml(input, "useUnifiedInputConfig", is_game_specific);
|
||||
backgroundControllerInput.setFromToml(input, "backgroundControllerInput", is_game_specific);
|
||||
usbDeviceBackend.setFromToml(input, "usbDeviceBackend", is_game_specific);
|
||||
openCVCameraId.setFromToml(input, "openCVCameraId", is_game_specific);
|
||||
}
|
||||
|
||||
if (data.contains("Audio")) {
|
||||
@ -1083,6 +1092,7 @@ void save(const std::filesystem::path& path, bool is_game_specific) {
|
||||
backgroundControllerInput.setTomlValue(data, "Input", "backgroundControllerInput",
|
||||
is_game_specific);
|
||||
usbDeviceBackend.setTomlValue(data, "Input", "usbDeviceBackend", is_game_specific);
|
||||
openCVCameraId.setTomlValue(data, "Input", "openCVCameraId", is_game_specific);
|
||||
|
||||
micDevice.setTomlValue(data, "Audio", "micDevice", is_game_specific);
|
||||
mainOutputDevice.setTomlValue(data, "Audio", "mainOutputDevice", is_game_specific);
|
||||
@ -1210,6 +1220,7 @@ void setDefaultValues(bool is_game_specific) {
|
||||
userName.set("shadPS4", is_game_specific);
|
||||
isShowSplash.set(false, is_game_specific);
|
||||
isSideTrophy.set("right", is_game_specific);
|
||||
openCVCameraId.set(-1, is_game_specific);
|
||||
|
||||
// GS - Input
|
||||
cursorState.set(HideCursorState::Idle, is_game_specific);
|
||||
|
||||
@ -114,6 +114,8 @@ void setPadSpkOutputDevice(std::string device, bool is_game_specific = false);
|
||||
std::string getMicDevice();
|
||||
void setCursorHideTimeout(int newcursorHideTimeout, bool is_game_specific = false);
|
||||
void setMicDevice(std::string device, bool is_game_specific = false);
|
||||
void SetOpenCVCameraId(s32 id);
|
||||
s32 GetOpenCVCameraId();
|
||||
void setSeparateLogFilesEnabled(bool enabled, bool is_game_specific = false);
|
||||
bool getSeparateLogFilesEnabled();
|
||||
u32 GetLanguage();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user