summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-09-09 19:20:34 +0200
committerRaindropsSys <contact@minteck.org>2023-09-09 19:20:34 +0200
commit8f2e1b445f52e3df6e9763d216de1c0052c00153 (patch)
tree3d4a7bc1e0b4894a62e14ee727bef193b61c3849 /src
parent553401cc031d2d073f33008129ada4faf1eb2582 (diff)
downloadblocks-8f2e1b445f52e3df6e9763d216de1c0052c00153.tar.gz
blocks-8f2e1b445f52e3df6e9763d216de1c0052c00153.tar.bz2
blocks-8f2e1b445f52e3df6e9763d216de1c0052c00153.zip
Updated 3 files and added 62 files (automated)HEADmane
Diffstat (limited to 'src')
-rw-r--r--src/game.py2
-rw-r--r--src/menu.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/game.py b/src/game.py
index 1eb9581..a6c17e6 100644
--- a/src/game.py
+++ b/src/game.py
@@ -47,7 +47,7 @@ def run(screen, save_data):
if not paused:
audio.play_music()
- pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.MOUSEMOTION, pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN, pygame.QUIT])
+ pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.MOUSEMOTION, pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN, pygame.QUIT])
for event in pygame.event.get():
if event.type == pygame.WINDOWFOCUSLOST:
focused = False
diff --git a/src/menu.py b/src/menu.py
index 49e263f..40b981b 100644
--- a/src/menu.py
+++ b/src/menu.py
@@ -16,7 +16,7 @@ def show(screen):
audio.play_menu(True)
while running:
- pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.MOUSEBUTTONDOWN, pygame.MOUSEMOTION, pygame.QUIT])
+ pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.MOUSEBUTTONDOWN, pygame.MOUSEMOTION, pygame.QUIT])
for event in pygame.event.get():
if event.type == pygame.WINDOWFOCUSLOST:
focused = False
@@ -52,7 +52,7 @@ def show(screen):
while run and not done:
canvas.fill("black")
- pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.QUIT, pygame.KEYDOWN])
+ pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.QUIT, pygame.KEYDOWN])
for event in pygame.event.get():
if event.type == pygame.WINDOWFOCUSLOST:
focused = False
@@ -143,7 +143,7 @@ def show(screen):
while run and not done:
canvas.fill("black")
- pygame.event.set_allowed([pygame.APPMOUSEFOCUS, pygame.APPINPUTFOCUS, pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWICCPROFCHANGED, pygame.WINDOWTAKEFOCUS, pygame.WINDOWMINIMIZED, pygame.QUIT, pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN])
+ pygame.event.set_allowed([pygame.WINDOWRESIZED, pygame.WINDOWEXPOSED, pygame.WINDOWENTER, pygame.WINDOWLEAVE, pygame.WINDOWFOCUSLOST, pygame.WINDOWFOCUSGAINED, pygame.WINDOWMINIMIZED, pygame.QUIT, pygame.MOUSEBUTTONDOWN, pygame.KEYDOWN])
for event in pygame.event.get():
if event.type == pygame.WINDOWFOCUSLOST:
focused = False