Commit 885a668a authored by Christoph Haag's avatar Christoph Haag
Browse files

d/oh: Fix number of inputs for generic controller

fixes memory corruption
parent 027ce21b
......@@ -1051,7 +1051,8 @@ create_controller(ohmd_context *ctx, int device_idx, int device_flags, enum xrt_
bool oculus_touch = false;
int num_inputs = 1;
// khronos simple controller has 4 inputs
int num_inputs = 4;
int num_outputs = 0;
if (strcmp(prod, "Rift (CV1): Right Controller") == 0 || strcmp(prod, "Rift (CV1): Left Controller") == 0 ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment