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:
bicarus
2026-01-19 02:54:01 -08:00
committed by GitHub
parent 7684028f99
commit 4e26c8afa5
8 changed files with 198 additions and 0 deletions
+3
View File
@@ -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") {
+11
View File
@@ -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",
+1
View File
@@ -236,6 +236,7 @@ namespace launcher {
spice2x_IIDXWindowedTDJ,
spice2x_DRSDisableTouch,
spice2x_DRSTransposeTouch,
DRSRGBCameraHook,
spice2x_IIDXNativeTouch,
spice2x_IIDXNoSub,
spice2x_IIDXEmulateSubscreenKeypadTouch,