Added new loader
This commit is contained in:
parent
b8a2c1b871
commit
09ecad4981
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ from .nxbt import Nxbt, PRO_CONTROLLER
|
||||||
|
|
||||||
class LoadingSpinner():
|
class LoadingSpinner():
|
||||||
|
|
||||||
SPINNER_CHARS = ['⢸', '⣰', '⣤', '⣆', '⡇', '⠏', '⠛', '⠹']
|
SPINNER_CHARS = ['■ □ □ □', '□ ■ □ □', '□ □ ■ □', '□ □ □ ■', '□ □ □ ■', '□ □ ■ □', '□ ■ □ □', '■ □ □ □'] # noqa
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
|
@ -332,7 +332,7 @@ class InputTUI():
|
||||||
# Loading Screen
|
# Loading Screen
|
||||||
while inp != chr(113): # Checking for q press
|
while inp != chr(113): # Checking for q press
|
||||||
# Check key at 15hz
|
# Check key at 15hz
|
||||||
inp = term.inkey(timeout=1/15)
|
inp = term.inkey(timeout=1/30)
|
||||||
new_state = self.nx.state[self.controller_index]["state"]
|
new_state = self.nx.state[self.controller_index]["state"]
|
||||||
|
|
||||||
if new_state != state:
|
if new_state != state:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue