Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SetMouseDelay and its built-in var
A_MouseDelay
(see other commit at `SetKeyDelay` on how this affects current scripts)
- Loading branch information
Showing
6 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SetMouseDelay, Delay | ||
class Cmd::X11::Mouse::SetMouseDelay < Cmd::Base | ||
def self.min_args; 1 end | ||
def self.max_args; 1 end | ||
def run(thread, args) | ||
thread.settings.mouse_delay = args[0].to_i if args[0].to_i? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
N_TESTS = 70 | ||
|
||
SetKeyDelay, 0 | ||
SetMouseDelay, 0 | ||
|
||
GoSub, run_tests | ||
if tests_run != %N_TESTS% | ||
|