allwpilib
allwpilib copied to clipboard
Sim Gui default POV keyboard settings not always working.
Describe the bug When I set a controller to use a keyboard simulation, the POV buttons mostly do not work until they have been reset, even to the default value.
To Reproduce Steps to reproduce the behavior:
- Add code that uses ".povUp.onTrue" or ".povDown.onTrue" to your robot.
- Run in the desktop simulator.
- Drag and drop Keyboard 0 to Joystick 0.
- Run Robot in teleop mode.
- Press 8 or 2 (defaults for keyboard 0 for povUp and povDown).
- Nothing happens.
- Bring up Keyboard 0 settings.
- Click on the "8" next to POV 0, 0 degrees, type 8.
- Now the 8 key works, but the 2 key does not.
- Click on the "2" next to POV 0, 180 degrees, type 2.
- Now both keys work.
- End the simulation.
- Start the simulation, go to teleop.
- Now the 8 key works, but the 2 key does not.
- Repeat setting the 2 key to be 2.
- Now 2 key works.
Expected behavior All of the default values of the keyboards should work at once.
Desktop (please complete the following information):
- OS: Windows 10 WPILib Information: Project Version: 2024.1.1-beta-3 VS Code Version: 1.84.0 WPILib Extension Version: 2024.1.1-beta-3 C++ Extension Version: 1.17.5 Java Extension Version: 1.23.0 Java Debug Extension Version: 0.52.0 Java Dependencies Extension Version 0.23.0 Java Version: 17 Java Location: C:\Users\Public\wpilib\2024\jdk Vendor Libraries: REVLib (2024.0.0) WPILib-New-Commands (1.0.0