X-Git-Url: https://eleni.mutantstargoat.com/git/?a=blobdiff_plain;f=src%2Fwinnie.cc;h=fe81799671b9facd78f4bb69b314cd87e5c61970;hb=b73087b9c4e30e034bb1690c492f4c9798e0d09b;hp=4f068bae2740f87c697dca845492306b52803948;hpb=f71618aebfa6b8754dd056689a6c5821b755972c;p=winnie diff --git a/src/winnie.cc b/src/winnie.cc index 4f068ba..fe81799 100644 --- a/src/winnie.cc +++ b/src/winnie.cc @@ -1,4 +1,6 @@ #include "winnie.h" +#include "keyboard.h" +#include "mouse.h" bool winnie_init() { @@ -6,6 +8,14 @@ bool winnie_init() return false; } + if(!init_keyboard()) { + return false; + } + + if(!init_mouse()) { + return false; + } + wm->invalidate_region(get_screen_size()); return true; } @@ -13,4 +23,5 @@ bool winnie_init() void winnie_shutdown() { destroy_gfx(); + destroy_keyboard(); }