diff --git a/src/VirtualKeyboard.c b/src/VirtualKeyboard.c index c6412ae..c93a7aa 100644 --- a/src/VirtualKeyboard.c +++ b/src/VirtualKeyboard.c @@ -57,6 +57,7 @@ extern FILE *fdebug; static SDL_Surface *image_kbd, *image_sym, *image_caps,*image_kbd_small, *image_sym_small, *image_caps_small, *tmp_surface ; static int vkb_is_init; static int key_code; +VirtualKeyboard_struct VirtualKeyboard; extern struct computer ordenador; void clean_screen(); diff --git a/src/VirtualKeyboard.h b/src/VirtualKeyboard.h index 4834336..3495713 100644 --- a/src/VirtualKeyboard.h +++ b/src/VirtualKeyboard.h @@ -1,55 +1,56 @@ -/********************************************************************* - * Copyright (C) 2012, Fabio Olimpieri - * Copyright (C) 2009, Simon Kagstrom - * - * Filename: VirtualKeyboard.h - * - * Description: A virtual keyboard - * - * This file is part of FBZX Wii - * - * FBZX Wii is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * FBZX Wii is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - ********************************************************************/ -#include -#include - -typedef struct virtkey -{ - const char *name; - int sdl_code; - int is_on; - int caps_on; - int sym_on; -} virtkey_t; - - -struct Virtual_Keyboard -{ - SDL_Surface *screen; - int sel_x; - int sel_y; - char buf[255]; - -} VirtualKeyboard; - -void VirtualKeyboard_init(SDL_Surface *screen); -struct virtkey* get_key(); -struct virtkey* get_key_internal(); -void draw_vk(); -void select_next_kb(int dx, int dy); -void toggle_shift(); -void virtkey_ir_run(); -void virtkey_ir_activate(void); -void virtkey_ir_deactivate(void); +/********************************************************************* + * Copyright (C) 2012, Fabio Olimpieri + * Copyright (C) 2009, Simon Kagstrom + * + * Filename: VirtualKeyboard.h + * + * Description: A virtual keyboard + * + * This file is part of FBZX Wii + * + * FBZX Wii is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * FBZX Wii is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + ********************************************************************/ +#include +#include + +typedef struct virtkey +{ + const char *name; + int sdl_code; + int is_on; + int caps_on; + int sym_on; +} virtkey_t; + + +typedef struct Virtual_Keyboard +{ + SDL_Surface *screen; + int sel_x; + int sel_y; + char buf[255]; + +} VirtualKeyboard_struct; + +void VirtualKeyboard_init(SDL_Surface *screen); +struct virtkey* get_key(); +struct virtkey* get_key_internal(); +void draw_vk(); +void select_next_kb(int dx, int dy); +void toggle_shift(); +void virtkey_ir_run(); +void virtkey_ir_activate(void); +void virtkey_ir_deactivate(void); +extern VirtualKeyboard_struct VirtualKeyboard;