mirror of
https://github.com/Oibaf66/fbzx-wii.git
synced 2024-11-28 02:54:15 +01:00
Fixed definition of Virtual_Keyboard variable
This commit is contained in:
parent
fc9ce22468
commit
ac2eb0cf1c
@ -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();
|
||||
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
********************************************************************/
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL/SDL_ttf.h>
|
||||
|
||||
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 <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
********************************************************************/
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL/SDL_ttf.h>
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user