diff options
author | Jonas Bernard <public.jbernard@web.de> | 2021-04-24 04:19:39 +0200 |
---|---|---|
committer | Jonas Bernard <public.jbernard@web.de> | 2021-04-24 04:19:39 +0200 |
commit | a0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8 (patch) | |
tree | 47768e46da3e6682acf6b72dddabaef78d0bfeb8 /txtgameengine/app.py | |
parent | 635185baac3a2a9c5e50971d994ca7bcdec1d495 (diff) | |
download | txtgameengine-a0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8.tar.gz txtgameengine-a0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8.tar.bz2 txtgameengine-a0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8.zip |
Progress at night
Diffstat (limited to 'txtgameengine/app.py')
-rw-r--r-- | txtgameengine/app.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/txtgameengine/app.py b/txtgameengine/app.py index 8206ef4..a596f22 100644 --- a/txtgameengine/app.py +++ b/txtgameengine/app.py @@ -1,4 +1,5 @@ from pathlib import Path +from .input.callbacks import CallbackHandler EPSILON = 1.e-10 builtin_resource_path = Path(__file__).parent / 'builtin_res' @@ -21,9 +22,10 @@ class TxtGameApp: self.shaders = self.SHADER_CLASS(self) self.coords = self.COORDINATE_CLASS(self) self.should_exit = False + self.handler = CallbackHandler(self) def init(self): - pass + self.platform.init_callbacks(self.window, self.handler) def start(self): self.platform.init() |