{
keybits_t *keystate;
- keystate = calloc(SDLK_LAST / KEYBITS_WORD_BITS + 1, 1);
+ keystate = calloc(SDLK_LAST / KEYBITS_WORD_BITS + 1, sizeof(keybits_t));
if (keystate == NULL) {
fprintf(stderr, "in_sdl: OOM\n");
return;
.menu_translate = in_sdl_menu_translate,
};
-void in_sdl_init(void)
+void in_sdl_init(const struct in_default_bind *defbinds)
{
- in_register_driver(&in_sdl_drv);
+ in_register_driver(&in_sdl_drv, defbinds);
}