|
2 | 2 | --- MOD_NAME: Better Mouse And Gamepad |
3 | 3 | --- MOD_ID: BetterMouseAndGamepad |
4 | 4 | --- MOD_AUTHOR: [Kooluve] |
5 | | ---- MOD_DESCRIPTION: [V1.0.4] Make mouse and gamepad more efficient and easier to use. View "README.md" and "*.lua" file for all functions and settings. https://github.com/Kooluve/Better-Mouse-And-Gamepad |
| 5 | +--- MOD_DESCRIPTION: [V1.0.5] Make mouse and gamepad more efficient and easier to use. View "README.md" and "*.lua" file for all functions and settings. https://github.com/Kooluve/Better-Mouse-And-Gamepad |
6 | 6 | ---------------------------------------------- |
7 | 7 | ------------MOD CODE ------------------------- |
8 | 8 |
|
|
437 | 437 |
|
438 | 438 | function queue_U_wheel_press() |
439 | 439 | if C.locks.frame or not mod_functions_can["middle_mouse_button_up"] then return end |
440 | | - if not G.SETTINGS.paused and G.STATE == G.STATES.SELECTING_HAND and Game_state_change_to_selecting_hand and C.cursor_down.target.states.drag.is == false then |
| 440 | + if C.cursor_down.target and C.cursor_down.target.states.drag.is then return end |
| 441 | + if not G.SETTINGS.paused and G.STATE == G.STATES.SELECTING_HAND and Game_state_change_to_selecting_hand then |
441 | 442 | local play_button = G.buttons:get_UIE_by_ID('play_button') |
442 | 443 | if play_button and play_button.config.button then |
443 | 444 | G.FUNCS.play_cards_from_highlighted() |
|
448 | 449 |
|
449 | 450 | function queue_D_wheel_press() |
450 | 451 | if C.locks.frame or not mod_functions_can["middle_mouse_button_down"] then return end |
451 | | - if not G.SETTINGS.paused and G.STATE == G.STATES.SELECTING_HAND and Game_state_change_to_selecting_hand and C.cursor_down.target.states.drag.is == false then |
| 452 | + if C.cursor_down.target and C.cursor_down.target.states.drag.is then return end |
| 453 | + if not G.SETTINGS.paused and G.STATE == G.STATES.SELECTING_HAND and Game_state_change_to_selecting_hand then |
452 | 454 | local discard_button = G.buttons:get_UIE_by_ID('discard_button') |
453 | 455 | if discard_button and discard_button.config.button then |
454 | 456 | G.FUNCS.discard_cards_from_highlighted() |
|
0 commit comments