mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
drs: rgb camera hook (#524)
## Link to GitHub Issue, if one exists n/a ## Description of change Add plug&play hooks for RGB camera in DRS. ## Testing Seems to work with my crappy Logitech C270 Camera options (brightness etc) seem to work in test menu as well). Tested by another user with realsense camera + logitech camera, both cams were detected correctly.
This commit is contained in:
@@ -1118,6 +1118,9 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::spice2x_DRSTransposeTouch].value_bool()) {
|
||||
games::drs::TRANSPOSE_TOUCH = true;
|
||||
}
|
||||
if (options[launcher::Options::DRSRGBCameraHook].value_bool()) {
|
||||
games::drs::RGB_CAMERA_HOOK = true;
|
||||
}
|
||||
if (options[launcher::Options::spice2x_AutoCard].is_active()) {
|
||||
const auto text = options[launcher::Options::spice2x_AutoCard].value_text();
|
||||
if (text == "p1") {
|
||||
|
||||
@@ -2219,6 +2219,17 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.game_name = "DANCERUSH",
|
||||
.category = "Game Options",
|
||||
},
|
||||
{
|
||||
// DRSRGBCameraHook
|
||||
.title = "DRS RGB Camera Hook",
|
||||
.name = "drsrgbcamhook",
|
||||
.desc = "Hook into the RGB camera detection and attempt to use your own non-official webcam. "
|
||||
"Not every webcam will be compatible with this; YMMV.\n\n"
|
||||
"Note: this is NOT for the motion camera - you still need a real RealSense camera for that!",
|
||||
.type = OptionType::Bool,
|
||||
.game_name = "DANCERUSH",
|
||||
.category = "Game Options",
|
||||
},
|
||||
{
|
||||
// spice2x_IIDXNativeTouch
|
||||
.title = "IIDX Native Touch Handling",
|
||||
|
||||
@@ -236,6 +236,7 @@ namespace launcher {
|
||||
spice2x_IIDXWindowedTDJ,
|
||||
spice2x_DRSDisableTouch,
|
||||
spice2x_DRSTransposeTouch,
|
||||
DRSRGBCameraHook,
|
||||
spice2x_IIDXNativeTouch,
|
||||
spice2x_IIDXNoSub,
|
||||
spice2x_IIDXEmulateSubscreenKeypadTouch,
|
||||
|
||||
Reference in New Issue
Block a user