Dav999
d709db4b45
Fix squeak and save spam in gamepad menu
...
If you push a button to set a controller binding, you may either hear
one Viridian squeak, two Viridian squeaks (a louder one), or Viridian
doesn't stop squeaking until you let go of the button. While you hear
the continuous squeaking, your save file is also repeatedly saved.
There are two small bugs at play here:
- the squeak is actually played in two different places at the same
time (both in titleinput() whenever a button is pressed, and in
updatebuttonmappings() when a mapping is succesfully changed)
- titleinput() doesn't register that a button is held down and applies
the button (and saves to file) every frame for as long as the button
is held
This commit fixes both these issues. Now a single button press always
causes one squeak, and only if the bindings actually changed. Your save
file is also no longer saved repeatedly from holding down the button.
2024-12-22 15:53:04 -05:00
..
2023-03-21 19:59:48 -07:00
2022-11-30 22:50:08 -08:00
2022-11-30 22:50:08 -08:00
2021-09-23 22:21:49 -07:00
2023-09-20 16:20:24 -07:00
2023-09-20 16:20:24 -07:00
2024-11-15 20:33:10 -05:00
2023-12-01 12:08:26 -05:00
2021-10-01 09:35:28 -07:00
2024-05-21 20:57:19 -07:00
2024-11-03 21:54:44 -08:00
2024-09-23 18:56:41 -07:00
2024-01-09 15:48:41 -08:00
2024-01-09 15:48:41 -08:00
2021-03-21 02:55:42 -04:00
2021-03-21 02:55:42 -04:00
2024-09-23 18:56:41 -07:00
2024-02-02 19:13:59 -08:00
2024-11-17 11:45:57 -05:00
2024-11-17 11:45:57 -05:00
2024-11-17 11:45:57 -05:00
2023-02-17 20:47:32 -08:00
2021-12-18 00:01:32 -08:00
2021-09-27 10:32:23 -07:00
2024-11-15 20:33:10 -05:00
2024-01-09 15:48:41 -08:00
2023-03-02 22:58:12 -08:00
2022-12-31 20:04:56 -08:00
2024-01-23 15:33:38 -08:00
2024-01-23 15:33:38 -08:00
2024-01-08 19:17:44 -08:00
2024-01-08 19:17:44 -08:00
2024-11-15 20:33:10 -05:00
2024-09-27 17:14:57 -07:00
2021-08-05 13:35:21 -04:00
2021-08-05 13:35:21 -04:00
2021-09-19 21:49:54 -07:00
2024-11-17 11:46:24 -05:00
2024-11-07 09:53:45 -08:00
2024-11-03 21:54:44 -08:00
2024-01-09 16:03:05 -08:00
2024-01-09 15:48:41 -08:00
2024-01-09 15:48:41 -08:00
2024-08-06 18:16:46 -07:00
2024-08-02 22:25:00 -07:00
2024-12-22 15:53:04 -05:00
2021-02-25 17:23:59 -05:00
2023-02-13 23:27:00 -08:00
2023-02-13 23:27:00 -08:00
2024-08-02 22:25:00 -07:00
2024-08-02 22:25:00 -07:00
2022-12-31 20:04:56 -08:00
2022-12-31 20:04:56 -08:00
2024-11-17 11:45:57 -05:00
2023-11-19 17:34:23 -08:00
2024-02-08 10:28:27 -08:00
2024-02-08 10:28:27 -08:00
2024-01-08 19:17:44 -08:00
2022-12-31 20:04:56 -08:00
2024-01-08 19:17:44 -08:00
2024-01-06 14:11:40 -08:00
2022-03-13 23:50:37 -07:00
2024-11-17 11:45:57 -05:00
2021-02-25 17:23:59 -05:00
2024-11-15 20:33:10 -05:00
2021-04-17 00:50:04 -04:00
2024-11-17 11:45:57 -05:00
2024-11-03 21:54:44 -08:00
2023-01-28 23:32:14 -08:00
2024-12-17 09:52:06 -05:00
2024-12-17 09:52:06 -05:00
2021-09-19 21:49:54 -07:00
2021-02-25 17:23:59 -05:00
2022-12-31 20:04:56 -08:00
2022-12-31 20:04:56 -08:00
2024-01-08 19:17:44 -08:00
2021-02-25 17:23:59 -05:00
2024-08-27 15:13:24 -07:00
2024-12-17 09:52:06 -05:00
2021-02-25 17:23:59 -05:00
2024-01-08 20:01:27 -08:00
2023-06-05 17:57:23 -07:00
2024-02-02 18:57:24 -08:00
2023-02-13 23:27:00 -08:00
2024-11-15 20:33:10 -05:00
2024-02-03 18:11:11 -08:00
2023-03-21 00:23:42 -07:00
2024-11-17 11:45:57 -05:00
2024-11-07 09:53:45 -08:00
2023-11-30 08:38:40 -08:00
2024-11-15 20:33:10 -05:00
2023-06-05 17:57:23 -07:00
2022-12-31 20:04:56 -08:00
2024-01-09 15:48:41 -08:00
2022-12-31 20:04:56 -08:00
2023-11-27 12:09:42 -05:00
2022-12-31 20:04:56 -08:00
2024-11-07 09:53:45 -08:00
2024-11-07 09:53:45 -08:00
2022-11-30 22:50:08 -08:00
2021-09-24 17:48:15 -07:00
2021-09-24 16:37:27 -07:00
2023-01-28 14:36:28 -08:00
2022-12-29 16:13:54 -08:00
2021-05-25 15:23:34 -04:00
2023-02-27 23:00:41 -08:00
2023-02-27 23:00:41 -08:00
2024-01-06 14:11:40 -08:00
2024-01-06 14:11:40 -08:00
2024-01-06 14:11:40 -08:00
2023-03-21 19:59:48 -07:00
2024-11-15 20:33:10 -05:00
2022-11-14 19:40:23 -08:00
2022-12-31 20:04:56 -08:00
2022-12-31 20:04:56 -08:00
2020-11-04 12:06:57 -05:00
2022-12-31 20:04:56 -08:00
2023-11-27 12:09:42 -05:00
2021-08-27 12:28:35 -07:00