2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2006-07-09 11:47:17 +00:00
|
|
|
*
|
|
|
|
* This program 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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
*/
|
2008-05-15 22:12:51 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
#ifndef _TOUCHKEYBOARD_H_
|
|
|
|
#define _TOUCHKEYBOARD_H_
|
|
|
|
|
2007-12-21 18:36:40 +00:00
|
|
|
#include "osystem_ds.h"
|
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
namespace DS {
|
|
|
|
|
2007-06-30 23:03:03 +00:00
|
|
|
static const int NUM_WORDS = 12;
|
2007-12-21 18:36:40 +00:00
|
|
|
static const int KEYBOARD_DATA_SIZE = 4736 * 2;
|
2007-06-30 23:03:03 +00:00
|
|
|
|
2007-12-21 18:36:40 +00:00
|
|
|
void createKeyEvent(int keyNum, Common::Event& event);
|
2007-10-13 15:40:11 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
void drawKeyboard(int tileBase, int mapBase, u16* saveSpace);
|
|
|
|
void restoreVRAM(int tileBase, int mapBase, u16* saveSpace);
|
|
|
|
void addKeyboardEvents();
|
|
|
|
bool getKeyboardClosed();
|
|
|
|
|
2007-06-30 23:03:03 +00:00
|
|
|
void addAutoComplete(char* word);
|
|
|
|
void clearAutoComplete();
|
|
|
|
void setCharactersEntered(int count);
|
2008-09-15 22:43:20 +00:00
|
|
|
void releaseAllKeys();
|
2007-06-30 23:03:03 +00:00
|
|
|
|
2006-07-09 11:47:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|