Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Suggestions #4

Open
bobbydilley opened this issue Nov 22, 2019 · 2 comments
Open

Video Suggestions #4

bobbydilley opened this issue Nov 22, 2019 · 2 comments

Comments

@bobbydilley
Copy link

In your video you explain that you need to change the code for your screen resolution. The ABS library will send that as the maximum values for X, Y and the PC will scale those for the screen. Seeing as the camera is 1024x768 (I think), theres no point sending any resolution above those numbers as your not gaining any extra information from it. I suggest that you fix the ABS mouse screen resolution at the resolution of the camera, and don't encourage people to change it.

Secondly, seeing as you've got 3 buttons on the device, before you connect your calibration button, you could make it so that you have to hold down all 3 buttons for 5 seconds to go into calibration mode. This would make the PCB cheeper, and people then wouldn't have to modify their gun! You could run both of these setups together so that it'll support guns with the calibration button and without.

@lymandev
Copy link

lymandev commented Mar 4, 2021

@bobbydilley I'm not sure what guncon device you're using but for the guncon 2 you can simply add the following code to these areas of your sketch file to make it use multiple button inputs to trigger calibration. This lets one use the C or reload button in games.

Under buttonState1 = digitalRead(_reload); add

  buttonState1 = digitalRead(_APin);
  buttonState1 = digitalRead(_BPin);

In // Unpause button, // Pause/Re-calibrate button, and // Setup Start Calibration Button.

@bobbydilley
Copy link
Author

bobbydilley commented Mar 4, 2021

Hi @lymandev thanks for the reply, I like the suggestion! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants