Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
99f3bf07
Commit
99f3bf07
authored
May 06, 2023
by
missionfloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gamepad repeat option
parent
cca5782d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
javascript/imageviewerGamepad.js
javascript/imageviewerGamepad.js
+2
-3
modules/shared.py
modules/shared.py
+1
-0
No files found.
javascript/imageviewerGamepad.js
View file @
99f3bf07
const
delay
=
350
//ms
let
isWaiting
=
false
;
window
.
addEventListener
(
'
gamepadconnected
'
,
(
e
)
=>
{
setInterval
(
async
()
=>
{
...
...
@@ -18,7 +17,7 @@ window.addEventListener('gamepadconnected', (e) => {
if
(
xValue
<
0.3
&&
xValue
>
-
0.3
)
{
return
true
;
}
},
delay
);
},
opts
.
js_modal_lightbox_gamepad_repeat
);
isWaiting
=
false
;
}
},
10
);
...
...
@@ -41,7 +40,7 @@ window.addEventListener('wheel', (e) => {
setTimeout
(()
=>
{
isScrolling
=
false
;
},
delay
);
},
opts
.
js_modal_lightbox_gamepad_repeat
);
});
function
sleepUntil
(
f
,
timeout
)
{
...
...
modules/shared.py
View file @
99f3bf07
...
...
@@ -400,6 +400,7 @@ options_templates.update(options_section(('ui', "User interface"), {
"js_modal_lightbox"
:
OptionInfo
(
True
,
"Enable full page image viewer"
),
"js_modal_lightbox_initially_zoomed"
:
OptionInfo
(
True
,
"Show images zoomed in by default in full page image viewer"
),
"js_modal_lightbox_gamepad"
:
OptionInfo
(
True
,
"Navigate image viewer with gamepad"
),
"js_modal_lightbox_gamepad_repeat"
:
OptionInfo
(
250
,
"Gamepad repeat period, in milliseconds"
),
"show_progress_in_title"
:
OptionInfo
(
True
,
"Show generation progress in window title."
),
"samplers_in_dropdown"
:
OptionInfo
(
True
,
"Use dropdown for sampler selection instead of radio group"
),
"dimensions_and_batch_together"
:
OptionInfo
(
True
,
"Show Width/Height and Batch sliders in same row"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment