J :
* Remove useless, deprecated, and ill-willed files
This commit is contained in:
@@ -1,953 +0,0 @@
|
|||||||
#ifndef _JINPUTSYSTEM_H_
|
|
||||||
#define _JINPUTSYSTEM_H_
|
|
||||||
|
|
||||||
#include "JLBFont.h"
|
|
||||||
|
|
||||||
extern char input_table[3][9][4];
|
|
||||||
|
|
||||||
struct PY_index
|
|
||||||
{
|
|
||||||
char *PY;
|
|
||||||
char *PY_mb;
|
|
||||||
};
|
|
||||||
//"ニエメ�菠・ィココラヨナナチミア・ツ・・mb)"
|
|
||||||
static char PY_mb_a[] ={""};
|
|
||||||
static char PY_mb_ai[] ={""};
|
|
||||||
static char PY_mb_an[] ={""};
|
|
||||||
static char PY_mb_ang[] ={""};
|
|
||||||
static char PY_mb_ao[] ={""};
|
|
||||||
static char PY_mb_ba[] ={""};
|
|
||||||
static char PY_mb_bai[] ={""};
|
|
||||||
static char PY_mb_ban[] ={""};
|
|
||||||
static char PY_mb_bang[] ={""};
|
|
||||||
static char PY_mb_bao[] ={""};
|
|
||||||
static char PY_mb_bei[] ={""};
|
|
||||||
static char PY_mb_ben[] ={"アシアセアスアソコサ"};
|
|
||||||
static char PY_mb_beng[] ={"アタアチアツアテアナアト"};
|
|
||||||
static char PY_mb_bi[] ={"アニアヌアネアヒアハアノアメアリアマアユアモアムアンアミアヨアヤアヘアラアフアホアレアワアロ"};
|
|
||||||
static char PY_mb_bian[] ={""};
|
|
||||||
static char PY_mb_biao[] ={""};
|
|
||||||
static char PY_mb_bie[] ={""};
|
|
||||||
static char PY_mb_bin[] ={""};
|
|
||||||
static char PY_mb_bing[] ={"ア��﨣・﨑�ア�イ「イ。"};
|
|
||||||
static char PY_mb_bo[] ={"イヲイィイ」イァイアイ、イ・イョイオイッイエイェイャイーイゥイウイォイュイイイキ"};
|
|
||||||
static char PY_mb_bu[] ={"イケイクイカイサイシイスイタイソイコイセ"};
|
|
||||||
static char PY_mb_ca[] ={"イチ"};
|
|
||||||
static char PY_mb_cai[] ={"イツイナイトイニイテイノイハイヌイネイヒイフ"};
|
|
||||||
static char PY_mb_can[] ={"イホイヘイミイマイムイメイモ"};
|
|
||||||
static char PY_mb_cang[] ={"イヨイライヤイユイリ"};
|
|
||||||
static char PY_mb_cao[] ={"イルイレイワイロイン"};
|
|
||||||
static char PY_mb_ce[] ={"イ盍犂゙イ箚゚"};
|
|
||||||
static char PY_mb_ceng[] ={""};
|
|
||||||
static char PY_mb_cha[] ={"イ豐蟯魎邊雋・・・昀・鐱イ"};
|
|
||||||
static char PY_mb_chai[] ={""};
|
|
||||||
static char PY_mb_chan[] ={""};
|
|
||||||
static char PY_mb_chang[] ={"イ�イ�ウヲウ「ウ・ウ」ウァウ。ウィウゥウォウェ"};
|
|
||||||
static char PY_mb_chao[] ={"ウュウョウャウイウッウーウアウウウエエツ"};
|
|
||||||
static char PY_mb_che[] ={"ウオウカウケウクウキウコ"};
|
|
||||||
static char PY_mb_chen[] ={"ウサウセウシウタウチウスウツウソウトウテ"};
|
|
||||||
static char PY_mb_cheng[] ={"ウニウナウノウハウミウマウヌウヒウヘウフウホウネウムウメウモ"};
|
|
||||||
static char PY_mb_chi[] ={""};
|
|
||||||
static char PY_mb_chong[] ={""};
|
|
||||||
static char PY_mb_chou[] ={""};
|
|
||||||
static char PY_mb_chu[] ={""};
|
|
||||||
static char PY_mb_chuai[] ={"エァ"};
|
|
||||||
static char PY_mb_chuan[] ={"エィエゥエォエャエェエュエョ"};
|
|
||||||
static char PY_mb_chuang[]={"エウエッエーエイエエ"};
|
|
||||||
static char PY_mb_chui[] ={"エオエカエケエキエク"};
|
|
||||||
static char PY_mb_chun[] ={"エコエサエソエスエセエシエタ"};
|
|
||||||
static char PY_mb_chuo[] ={"エチ"};
|
|
||||||
static char PY_mb_ci[] ={"エテエハエトエノエネエヌエナエニエヒエホエフエヘ"};
|
|
||||||
static char PY_mb_cong[] ={"エムエモエメエミエマエヤ"};
|
|
||||||
static char PY_mb_cou[] ={"エユ"};
|
|
||||||
static char PY_mb_cu[] ={"エヨエルエラエリ"};
|
|
||||||
static char PY_mb_cuan[] ={"エレエワエロ"};
|
|
||||||
static char PY_mb_cui[] ={""};
|
|
||||||
static char PY_mb_cun[] ={""};
|
|
||||||
static char PY_mb_cuo[] ={""};
|
|
||||||
static char PY_mb_da[] ={""};
|
|
||||||
static char PY_mb_dai[] ={""};
|
|
||||||
static char PY_mb_dan[] ={"オ、オ・オ」オ「オヲオィオァオゥオォオョオッオャオュオーオェ"};
|
|
||||||
static char PY_mb_dang[] ={"オアオイオウオエオオ"};
|
|
||||||
static char PY_mb_dao[] ={"オカオシオコオケオキオサオクオスオソオチオタオセ"};
|
|
||||||
static char PY_mb_de[] ={"オテオツオト"};
|
|
||||||
static char PY_mb_deng[] ={"オニオヌオナオネオヒオハオノ"};
|
|
||||||
static char PY_mb_di[] ={"オヘオフオホオメオマオミオモオムオユオラオヨオリオワオロオンオレオ゙オル"};
|
|
||||||
static char PY_mb_dian[] ={""};
|
|
||||||
static char PY_mb_diao[] ={""};
|
|
||||||
static char PY_mb_die[] ={""};
|
|
||||||
static char PY_mb_ding[] ={"カ。カ」カ「カ、カ・カヲカゥカィカァ"};
|
|
||||||
static char PY_mb_diu[] ={"カェ"};
|
|
||||||
static char PY_mb_dong[] ={"カォカャカュカョカッカウカアカイカーカエ"};
|
|
||||||
static char PY_mb_dou[] ={"カシカオカキカカカクカケカコカサ"};
|
|
||||||
static char PY_mb_du[] ={"カスカセカチカソカタカツカトカテカハカナカヌカネカノカニ"};
|
|
||||||
static char PY_mb_duan[] ={"カヒカフカホカマカミカヘ"};
|
|
||||||
static char PY_mb_dui[] ={"カムカモカヤカメ"};
|
|
||||||
static char PY_mb_dun[] ={"カヨカリカユカラカワカロカルカン"};
|
|
||||||
static char PY_mb_duo[] ={""};
|
|
||||||
static char PY_mb_e[] ={""};
|
|
||||||
static char PY_mb_en[] ={""};
|
|
||||||
static char PY_mb_er[] ={"カ��郞巐�カ・�キ。"};
|
|
||||||
static char PY_mb_fa[] ={"キ「キヲキ・キ」キァキ、キィキゥ"};
|
|
||||||
static char PY_mb_fan[] ={"キォキャキュキェキイキッキーキウキョキアキエキオキクキコキケキカキキ"};
|
|
||||||
static char PY_mb_fang[] ={"キスキサキシキタキチキソキセキツキテキトキナ"};
|
|
||||||
static char PY_mb_fei[] ={"キノキヌキネキニキハキヒキフキヘキマキミキホキム"};
|
|
||||||
static char PY_mb_fen[] ={""};
|
|
||||||
static char PY_mb_feng[] ={""};
|
|
||||||
static char PY_mb_fo[] ={""};
|
|
||||||
static char PY_mb_fou[] ={""};
|
|
||||||
static char PY_mb_fu[] ={"キ����・キ・���キ�キ弴。ク「キ鄕、キ�」キ�ァクヲクョクォクゥクェクィクュクックククシクカクセクコクスクタクキクエクークアクオクサクウクソクケクイ"};
|
|
||||||
static char PY_mb_ga[] ={"クツクチ"};
|
|
||||||
static char PY_mb_gai[] ={"クテクトクニクヌクネクナ"};
|
|
||||||
static char PY_mb_gan[] ={"クノクハクヒクホクフクヘクムクマクメクミクモ"};
|
|
||||||
static char PY_mb_gang[] ={"クヤクユクレクルクリクラクヨクロクワ"};
|
|
||||||
static char PY_mb_gao[] ={""};
|
|
||||||
static char PY_mb_ge[] ={"ク・昤邵・・鋕鮑雕�・������ゥ"};
|
|
||||||
static char PY_mb_gei[] ={""};
|
|
||||||
static char PY_mb_gen[] ={""};
|
|
||||||
static char PY_mb_geng[] ={"ク・�ク鄕�ケ。ケ「ケ」"};
|
|
||||||
static char PY_mb_gong[] ={"ケ、ケュケォケヲケ・ケゥケャケァケェケィケョケッケーケイケア"};
|
|
||||||
static char PY_mb_gou[] ={"ケエケオケウケキケカケケケコケクケサ"};
|
|
||||||
static char PY_mb_gu[] ={"ケタケセケテケツケチケスケシケソケナケネケノケヌケニケトケフケハケヒケヘ"};
|
|
||||||
static char PY_mb_gua[] ={"ケマケホケミケムケメケモ"};
|
|
||||||
static char PY_mb_guai[] ={"ケヤケユケヨ"};
|
|
||||||
static char PY_mb_guan[] ={"ケリケロケルケレケラケンケワケ盪゚ケ犹゙"};
|
|
||||||
static char PY_mb_guang[] ={""};
|
|
||||||
static char PY_mb_gui[] ={""};
|
|
||||||
static char PY_mb_gun[] ={""};
|
|
||||||
static char PY_mb_guo[] ={"ケ��彧鄧・�"};
|
|
||||||
static char PY_mb_ha[] ={"ク��"};
|
|
||||||
static char PY_mb_hai[] ={"コ「コ。コ」コ・コァコヲコ、"};
|
|
||||||
static char PY_mb_han[] ={"コィコゥコャコェコッコュコョコォコアコーコココケコオコキコエコクコカコウコイ"};
|
|
||||||
static char PY_mb_hang[] ={"コシコスミミ"};
|
|
||||||
static char PY_mb_hao[] ={"コチコタコソコセコテコツコナコニコト"};
|
|
||||||
static char PY_mb_he[] ={"コヌコネコフコマコホコヘコモコメコヒコノコヤコミコハコリコヨコユコラ"};
|
|
||||||
static char PY_mb_hei[] ={"コレコル"};
|
|
||||||
static char PY_mb_hen[] ={"コロコワコンゴ"};
|
|
||||||
static char PY_mb_heng[] ={""};
|
|
||||||
static char PY_mb_hong[] ={""};
|
|
||||||
static char PY_mb_hou[] ={""};
|
|
||||||
static char PY_mb_hu[] ={"コ���。コ・德��コ���コ釗「サ」サ・サァサ、サヲ"};
|
|
||||||
static char PY_mb_hua[] ={"サィサェサゥサャサォサッサョサュサー"};
|
|
||||||
static char PY_mb_huai[] ={"サウサイサエサアサオ"};
|
|
||||||
static char PY_mb_huan[] ={"サカサケサキサクサコサテサツサスサササチサシサタサセサソ"};
|
|
||||||
static char PY_mb_huang[] ={"サトサナサハサヒサニサフサヘサネサヌサノサミサホサムサマ"};
|
|
||||||
static char PY_mb_hui[] ={"サメサヨサモサヤサユサリサラサレサワサ羹盻莉貊蟒篏゚ザサ狃ンサルサロ"};
|
|
||||||
static char PY_mb_hun[] ={""};
|
|
||||||
static char PY_mb_huo[] ={""};
|
|
||||||
static char PY_mb_ji[] ={""};
|
|
||||||
static char PY_mb_jia[] ={"シモシミシムシマシメシホシヤシユシラシヨシリシロシンシワシルジシレミョ"};
|
|
||||||
static char PY_mb_jian[] ={"シ鮠箴眈゚シ莨郛霈貍狆羮・蠑��晴・���・・�錡釞�スィス、ス」シ�悅。スァス「ス・スヲシ��・�"};
|
|
||||||
static char PY_mb_jiang[] ={"スュスェスォスャスゥスョスイスアスースッスウスオスエ"};
|
|
||||||
static char PY_mb_jiao[] ={"スサスシスソスススセスコスキスケスカスクスヌスニスハスネステスナスツスチスヒスノスミスホスマスフスムスヘセ�タ"};
|
|
||||||
static char PY_mb_jie[] ={""};
|
|
||||||
static char PY_mb_jin[] ={""};
|
|
||||||
static char PY_mb_jing[] ={"セゥセュセ・セ」セェセァセヲセャセ、セォセィセョセアセーセッセサセカセキセコセケセエセクセウセイセオ"};
|
|
||||||
static char PY_mb_jiong[] ={"セシセス"};
|
|
||||||
static char PY_mb_jiu[] ={"セタセソセセセナセテセトセチセツセニセノセハセフセホセヌセネセヘセヒ"};
|
|
||||||
static char PY_mb_ju[] ={""};
|
|
||||||
static char PY_mb_juan[] ={""};
|
|
||||||
static char PY_mb_jue[] ={""};
|
|
||||||
static char PY_mb_jun[] ={"セ・�セ�釮惞。ソ、セ�ソ」ソ・ソ「"};
|
|
||||||
static char PY_mb_ka[] ={"ソァソヲソィ"};
|
|
||||||
static char PY_mb_kai[] ={"ソェソォソュソョソャ"};
|
|
||||||
static char PY_mb_kan[] ={"シ�ッソアソーソイソウソエ"};
|
|
||||||
static char PY_mb_kang[] ={"ソオソカソキソクソコソケソサ"};
|
|
||||||
static char PY_mb_kao[] ={"ソシソスソセソソ"};
|
|
||||||
static char PY_mb_ke[] ={"ソタソチソツソニソテソナソトソヌソネソノソハソヒソフソヘソホ"};
|
|
||||||
static char PY_mb_ken[] ={"ソマソムソメソミ"};
|
|
||||||
static char PY_mb_keng[] ={"ソヤソモ"};
|
|
||||||
static char PY_mb_kong[] ={"ソユソラソヨソリ"};
|
|
||||||
static char PY_mb_kou[] ={"ソルソレソロソワ"};
|
|
||||||
static char PY_mb_ku[] ={""};
|
|
||||||
static char PY_mb_kua[] ={""};
|
|
||||||
static char PY_mb_kuai[] ={""};
|
|
||||||
static char PY_mb_kuan[] ={""};
|
|
||||||
static char PY_mb_kuang[] ={""};
|
|
||||||
static char PY_mb_kui[] ={"ソ���惞・釤�ソ�タ「タ」タ。"};
|
|
||||||
static char PY_mb_kun[] ={"タ、タ・タヲタァ"};
|
|
||||||
static char PY_mb_kuo[] ={"タゥタィタォタェ"};
|
|
||||||
static char PY_mb_la[] ={"タャタュタイタョタータッタア"};
|
|
||||||
static char PY_mb_lai[] ={"タエタウタオ"};
|
|
||||||
static char PY_mb_lan[] ={"タシタケタクタキタサタカタセタスタコタタタソタツタチタテタト"};
|
|
||||||
static char PY_mb_lang[] ={"タノタヌタネタナタニタハタヒ�"};
|
|
||||||
static char PY_mb_lao[] ={"タフタヘタホタマタミタムタヤタモタメ"};
|
|
||||||
static char PY_mb_le[] ={"タヨタユチヒ"};
|
|
||||||
static char PY_mb_lei[] ={"タラタリタンタレタルタワタ゚タ眤狢ロダ"};
|
|
||||||
static char PY_mb_leng[] ={""};
|
|
||||||
static char PY_mb_li[] ={"タ蠡貘・・�鄲・ァタ霏鯊�鋿・ィタ暲�ヲタ惕�「タ��釥�、タ�チ・タ�タ���」タ・。"};
|
|
||||||
static char PY_mb_lian[] ={"チャチアチッチーチォチェチョチュチイチウチキチカチオチエ"};
|
|
||||||
static char PY_mb_liang[] ={"チゥチシチケチコチクチサチスチチチツチセチタチソ"};
|
|
||||||
static char PY_mb_liao[] ={"チハチノチニチトチナチネチホチテチヌチヘチマチフ"};
|
|
||||||
static char PY_mb_lie[] ={"チミチモチメチヤチム"};
|
|
||||||
static char PY_mb_lin[] ={""};
|
|
||||||
static char PY_mb_ling[] ={""};
|
|
||||||
static char PY_mb_liu[] ={""};
|
|
||||||
static char PY_mb_long[] ={"チ愠・�チ鈐。チ�ツ、ツ「ツ」"};
|
|
||||||
static char PY_mb_lou[] ={"ツヲツ・ツァツィツェツゥ"};
|
|
||||||
static char PY_mb_lu[] ={"ツカツャツョツォツッツュツアツイツーツウツスツシツクツケツサツオツキツセツコツエ"};
|
|
||||||
static char PY_mb_luan[] ={"ツマツヘツホツミツムツメ"};
|
|
||||||
static char PY_mb_lue[] ={"ツモツヤ"};
|
|
||||||
static char PY_mb_lun[] ={"ツユツリツラツルツレツヨツロ"};
|
|
||||||
static char PY_mb_luo[] ={""};
|
|
||||||
static char PY_mb_lv[] ={"ツヒツソツタツツツテツチツナツニツトツノツヌツハツフツネ"};
|
|
||||||
static char PY_mb_ma[] ={""};
|
|
||||||
static char PY_mb_mai[] ={""};
|
|
||||||
static char PY_mb_man[] ={""};
|
|
||||||
static char PY_mb_mang[] ={"テヲテ「テ、テ」テァテ・"};
|
|
||||||
static char PY_mb_mao[] ={"ティテォテャテゥテェテョテュテッテーテウテアテイ"};
|
|
||||||
static char PY_mb_me[] ={"テエ"};
|
|
||||||
static char PY_mb_mei[] ={"テサテカテオテシテキテステコテクテケテソテタテセテテテチテトテツ"};
|
|
||||||
static char PY_mb_men[] ={"テナテニテヌ"};
|
|
||||||
static char PY_mb_meng[] ={"テネテヒテハテヘテノテフテマテホ"};
|
|
||||||
static char PY_mb_mi[] ={"テヨテヤテユテムテモテメテラテミテレテルテリテワテンテロ"};
|
|
||||||
static char PY_mb_mian[] ={""};
|
|
||||||
static char PY_mb_miao[] ={""};
|
|
||||||
static char PY_mb_mie[] ={""};
|
|
||||||
static char PY_mb_min[] ={""};
|
|
||||||
static char PY_mb_ming[] ={""};
|
|
||||||
static char PY_mb_miu[] ={"テ�"};
|
|
||||||
static char PY_mb_mo[] ={"コムテ�ト。ト」ト、トヲト・ト「トァトィトゥトュトートェトットョトォトャ"};
|
|
||||||
static char PY_mb_mou[] ={"トイトアトウ"};
|
|
||||||
static char PY_mb_mu[] ={"トクトカトオトキトエトセトソトチトシトケトサトタトストコトツ"};
|
|
||||||
static char PY_mb_na[] ={"トテトトトヌトノトネトニトナ"};
|
|
||||||
static char PY_mb_nai[] ={"トヒトフトハトホトヘ"};
|
|
||||||
static char PY_mb_nan[] ={"トミトマトム"};
|
|
||||||
static char PY_mb_nang[] ={"トメ"};
|
|
||||||
static char PY_mb_nao[] ={"トモトユトヤトヨトラ"};
|
|
||||||
static char PY_mb_ne[] ={"トリ"};
|
|
||||||
static char PY_mb_nei[] ={"トレトル"};
|
|
||||||
static char PY_mb_nen[] ={"トロ"};
|
|
||||||
static char PY_mb_neng[] ={"トワ"};
|
|
||||||
static char PY_mb_ni[] ={""};
|
|
||||||
static char PY_mb_nian[] ={""};
|
|
||||||
static char PY_mb_niang[] ={""};
|
|
||||||
static char PY_mb_niao[] ={""};
|
|
||||||
static char PY_mb_nie[] ={""};
|
|
||||||
static char PY_mb_nin[] ={""};
|
|
||||||
static char PY_mb_ning[] ={"ト�ナ。ト・鈺�ナ「"};
|
|
||||||
static char PY_mb_niu[] ={"ナ」ナ、ナヲナ・"};
|
|
||||||
static char PY_mb_nong[] ={"ナゥナィナァナェ"};
|
|
||||||
static char PY_mb_nu[] ={"ナォナャナュ"};
|
|
||||||
static char PY_mb_nuan[] ={"ナッ"};
|
|
||||||
static char PY_mb_nue[] ={"ナアナー"};
|
|
||||||
static char PY_mb_nuo[] ={"ナイナオナウナエ"};
|
|
||||||
static char PY_mb_nv[] ={"ナョ"};
|
|
||||||
static char PY_mb_o[] ={"ナカ"};
|
|
||||||
static char PY_mb_ou[] ={"ナキナケナクナサナシナコナス"};
|
|
||||||
static char PY_mb_pa[] ={"ナソナセナターメナテナチナツ"};
|
|
||||||
static char PY_mb_pai[] ={"ナトナヌナナナニナノナネ"};
|
|
||||||
static char PY_mb_pan[] ={"ナヒナハナフナヘナミナムナホナマ"};
|
|
||||||
static char PY_mb_pang[] ={"ナメナモナヤナユナヨ"};
|
|
||||||
static char PY_mb_pao[] ={"ナラナルナリナレナロナワナン"};
|
|
||||||
static char PY_mb_pei[] ={""};
|
|
||||||
static char PY_mb_pen[] ={""};
|
|
||||||
static char PY_mb_peng[] ={""};
|
|
||||||
static char PY_mb_pi[] ={"アルナ愰�鉀�・�、ナ�ニ」ニ。ナ�ニ「ニ・ニヲニィニァニゥ"};
|
|
||||||
static char PY_mb_pian[] ={"ニャニォニェニュ"};
|
|
||||||
static char PY_mb_piao[] ={"ニッニョニーニア"};
|
|
||||||
static char PY_mb_pie[] ={"ニイニウ"};
|
|
||||||
static char PY_mb_pin[] ={"ニエニカニオニキニク"};
|
|
||||||
static char PY_mb_ping[] ={"ニケニスニタニセニコニサニチニソニシ"};
|
|
||||||
static char PY_mb_po[] ={"ニツニテニトニナニネニニニノニヌ"};
|
|
||||||
static char PY_mb_pou[] ={"ニハ"};
|
|
||||||
static char PY_mb_pu[] ={"クャニヘニヒニフニホニミニマニムニモニヤニメニヨニユニラニリ"};
|
|
||||||
static char PY_mb_qi[] ={""};
|
|
||||||
static char PY_mb_qia[] ={"ニ�ヌ。ヌ「"};
|
|
||||||
static char PY_mb_qian[] ={"ヌァヌェヌ、ヌィヌ・ヌ」ヌヲヌォヌゥヌーヌョヌッヌャヌアヌュヌウヌイヌエヌキヌオヌカヌク"};
|
|
||||||
static char PY_mb_qiang[] ={"ヌコヌシヌケヌサヌソヌスヌセヌタ"};
|
|
||||||
static char PY_mb_qiao[] ={"ヌトヌテヌツヌチヌヌヌネヌナヌニヌノヌホヌヘヌマヌフヌヒヌハ"};
|
|
||||||
static char PY_mb_qie[] ={"ヌミヌムヌメヌモヌヤ"};
|
|
||||||
static char PY_mb_qin[] ={"ヌラヌヨヌユヌロヌリヌルヌンヌレヌワヌ゙ヌ゚"};
|
|
||||||
static char PY_mb_qing[] ={""};
|
|
||||||
static char PY_mb_qiong[] ={""};
|
|
||||||
static char PY_mb_qiu[] ={""};
|
|
||||||
static char PY_mb_qu[] ={"ヌ�戓�ヌ・�鉎��ネ。ネ「ネ」ネ・ネ、"};
|
|
||||||
static char PY_mb_quan[] ={"ネヲネォネィネェネュネャネゥネァネョネーネッ"};
|
|
||||||
static char PY_mb_que[] ={"ネイネアネウネエネクネキネオネカ"};
|
|
||||||
static char PY_mb_qun[] ={"ネケネコ"};
|
|
||||||
static char PY_mb_ran[] ={"ネサネシネスネセ"};
|
|
||||||
static char PY_mb_rang[] ={"ネソネツネタネチネテ"};
|
|
||||||
static char PY_mb_rao[] ={"ネトネナネニ"};
|
|
||||||
static char PY_mb_re[] ={"ネヌネネ"};
|
|
||||||
static char PY_mb_ren[] ={"ネヒネハネノネフネミネマネホネメネムネヘ"};
|
|
||||||
static char PY_mb_reng[] ={"ネモネヤ"};
|
|
||||||
static char PY_mb_ri[] ={"ネユ"};
|
|
||||||
static char PY_mb_rong[] ={"ネヨネ゙ネラネルネンネワネリネロネレネ゚"};
|
|
||||||
static char PY_mb_rou[] ={""};
|
|
||||||
static char PY_mb_ru[] ={""};
|
|
||||||
static char PY_mb_ruan[] ={""};
|
|
||||||
static char PY_mb_rui[] ={""};
|
|
||||||
static char PY_mb_run[] ={""};
|
|
||||||
static char PY_mb_ruo[] ={""};
|
|
||||||
static char PY_mb_sa[] ={""};
|
|
||||||
static char PY_mb_sai[] ={""};
|
|
||||||
static char PY_mb_san[] ={"ネ�ネ�ノ。ノ「"};
|
|
||||||
static char PY_mb_sang[] ={"ノ」ノ、ノ・"};
|
|
||||||
static char PY_mb_sao[] ={"ノヲノァノィノゥ"};
|
|
||||||
static char PY_mb_se[] ={"ノォノャノェ"};
|
|
||||||
static char PY_mb_sen[] ={"ノュ"};
|
|
||||||
static char PY_mb_seng[] ={"ノョ"};
|
|
||||||
static char PY_mb_sha[] ={"ノアノウノエノーノッノオノカノキマテ"};
|
|
||||||
static char PY_mb_shai[] ={"ノクノケ"};
|
|
||||||
static char PY_mb_shan[] ={"ノスノセノシノタノコノソノチノツノヌノサノネノニノノノテノナノトユ、"};
|
|
||||||
static char PY_mb_shang[] ={"ノヒノフノハノムノホノヘノマノミ"};
|
|
||||||
static char PY_mb_shao[] ={"ノモノメノユノヤノラノヨノリノルノロノワノレ"};
|
|
||||||
static char PY_mb_she[] ={""};
|
|
||||||
static char PY_mb_shen[] ={"ノ・・栁・�・鯔鐱��������イ"};
|
|
||||||
static char PY_mb_sheng[] ={"ノ�ノ揵�・、ノ鉑�ハ。ハ・ハ「ハ」"};
|
|
||||||
static char PY_mb_shi[] ={"ウラハャハァハヲハュハォハゥハィハェハョハッハアハカハオハーハエハウハキハクハケハシハサハコハソハマハタハヒハミハセハスハツハフハニハモハヤハホハメハムハテハヌハチハハハナハヘハネハトハノヒニ"};
|
|
||||||
static char PY_mb_shou[] ={"ハユハヨハリハラハルハワバハロハレハン"};
|
|
||||||
static char PY_mb_shu[] ={""};
|
|
||||||
static char PY_mb_shua[] ={"ヒ「ヒ」"};
|
|
||||||
static char PY_mb_shuai[] ={"ヒ・ヒ、ヒヲヒァ"};
|
|
||||||
static char PY_mb_shuan[] ={"ヒゥヒィ"};
|
|
||||||
static char PY_mb_shuang[]={"ヒォヒェヒャ"};
|
|
||||||
static char PY_mb_shui[] ={"ヒュヒョヒーヒッ"};
|
|
||||||
static char PY_mb_shun[] ={"ヒアヒウヒエヒイ"};
|
|
||||||
static char PY_mb_shuo[] ={"ヒオヒクヒキヒカ"};
|
|
||||||
static char PY_mb_si[] ={"ヒソヒセヒスヒシヒケヒサヒコヒタヒネヒトヒツヒナヒヌヒテヒチ"};
|
|
||||||
static char PY_mb_song[] ={"ヒノヒヒヒハヒマヒホヒミヒヘヒフ"};
|
|
||||||
static char PY_mb_sou[] ={"ヒヤヒムヒメヒモ"};
|
|
||||||
static char PY_mb_su[] ={"ヒユヒヨヒラピヒ猴リヒルヒレヒワヒンヒロ"};
|
|
||||||
static char PY_mb_suan[] ={""};
|
|
||||||
static char PY_mb_sui[] ={""};
|
|
||||||
static char PY_mb_sun[] ={""};
|
|
||||||
static char PY_mb_suo[] ={""};
|
|
||||||
static char PY_mb_ta[] ={"ヒ�ヒ鉧・撝�フ。フ「フ、フ」"};
|
|
||||||
static char PY_mb_tai[] ={"フ・フィファフヲフォフュフャフゥフェ"};
|
|
||||||
static char PY_mb_tan[] ={"フョフーフッフイフアフウフクフオフキフカフエフケフサフコフセフソフスフシ"};
|
|
||||||
static char PY_mb_tang[] ={"フタフニフテフトフチフツフナフヌフネフハフノフフフヒ"};
|
|
||||||
static char PY_mb_tao[] ={"フホフミフヘフマフモフメフユフヤフムフヨフラ"};
|
|
||||||
static char PY_mb_te[] ={"フリ"};
|
|
||||||
static char PY_mb_teng[] ={"フロフレフワフル"};
|
|
||||||
static char PY_mb_ti[] ={""};
|
|
||||||
static char PY_mb_tian[] ={""};
|
|
||||||
static char PY_mb_tiao[] ={""};
|
|
||||||
static char PY_mb_tie[] ={""};
|
|
||||||
static char PY_mb_ting[] ={"フ・。フ�フ�ヘ「ヘ、ヘ・ヘ」ヘヲヘァ"};
|
|
||||||
static char PY_mb_tong[] ={"ヘィヘャヘョヘゥヘュヘッヘェヘォヘウヘアヘーヘイヘエ"};
|
|
||||||
static char PY_mb_tou[] ={"ヘオヘキヘカヘク"};
|
|
||||||
static char PY_mb_tu[] ={"ヘケヘコヘサヘシヘスヘソヘセヘタヘチヘツヘテ"};
|
|
||||||
static char PY_mb_tuan[] ={"ヘトヘナ"};
|
|
||||||
static char PY_mb_tui[] ={"ヘニヘヌヘネヘヒヘノヘハ"};
|
|
||||||
static char PY_mb_tun[] ={"カレヘフヘヘヘホ"};
|
|
||||||
static char PY_mb_tuo[] ={"ヘミヘマヘムヘヤヘモヘユヘメヘラヘヨヘリヘル"};
|
|
||||||
static char PY_mb_wa[] ={""};
|
|
||||||
static char PY_mb_wai[] ={""};
|
|
||||||
static char PY_mb_wan[] ={""};
|
|
||||||
static char PY_mb_wang[] ={""};
|
|
||||||
static char PY_mb_wei[] ={"ホ」ヘ�ホ「ホ。ホェホ、ホァホ・ホヲホィホゥホャホォホーホアホイホウホュホッホョホタホエホサホカホキホクホセホスホケホシホオホソホコ"};
|
|
||||||
static char PY_mb_wen[] ={"ホツホチホトホニホナホテホヌホノホネホハ"};
|
|
||||||
static char PY_mb_weng[] ={"ホフホヒホヘ"};
|
|
||||||
static char PY_mb_wo[] ={"ホホホミホムホマホメホヨホヤホユホモ"};
|
|
||||||
static char PY_mb_wu[] ={""};
|
|
||||||
static char PY_mb_xi[] ={"マヲマォホ�・」ホ���「ホ�マ、マァマゥホ�昕ャマ。マェホ�マィホ�鋧・マーマッマョマアマュマエマイマキマオマクマカ"};
|
|
||||||
static char PY_mb_xia[] ={"マコマケマサマタマソマチマセマスマシマツマナマト"};
|
|
||||||
static char PY_mb_xian[] ={"マウマノマネマヒマニマヌマハマミマメマヘマフマムマママホマモマヤマユマリマヨマ゚マ゙マワマンマレマロマラマル"};
|
|
||||||
static char PY_mb_xiang[] ={""};
|
|
||||||
static char PY_mb_xiao[] ={"マ・鋧��昕���ミ。マ�ミ「ミ、マ�ァミ」ミヲミ・"};
|
|
||||||
static char PY_mb_xie[] ={"ミゥミィミェミォミュミーミイミアミウミッミャミエミケミコミカミシミオミサミクミキ"};
|
|
||||||
static char PY_mb_xin[] ={"ミトミテミセミチミタミソミツミスミナミニ"};
|
|
||||||
static char PY_mb_xing[] ={"ミヒミヌミハミノミネミフミマミホミヘミムミモミユミメミヤ"};
|
|
||||||
static char PY_mb_xiong[] ={"ミラミヨミルミレミリミロミワ"};
|
|
||||||
static char PY_mb_xiu[] ={""};
|
|
||||||
static char PY_mb_xu[] ={""};
|
|
||||||
static char PY_mb_xuan[] ={"ミ�鋗昻�ミ・�ム。ム「ム、ム」"};
|
|
||||||
static char PY_mb_xue[] ={"マ�・ムヲムィムァムゥムェ"};
|
|
||||||
static char PY_mb_xun[] ={"ムォムャムームイムョムアムッムュムオムカムエムクムキムウ"};
|
|
||||||
static char PY_mb_ya[] ={"ムセムケムスムコムサムシムタムソムチムツムトムテムニムナムヌムネ"};
|
|
||||||
static char PY_mb_yan[] ={""};
|
|
||||||
static char PY_mb_yang[] ={""};
|
|
||||||
static char PY_mb_yao[] ={"ストム�ム・鋐「メヲメ、メ・メ。メ」ム�メァメィメゥメェメォヤソ"};
|
|
||||||
static char PY_mb_ye[] ={"メャメュメッメョメイメアメーメオメカメキメウメケメエメコメク"};
|
|
||||||
static char PY_mb_yi[] ={"メサメチメツメスメタメソメシメセメヌメトメハメヒメフメネメニメナメテメノメヘメメメムメヤメモメマメミメホメ袵レメ萪ユメ鰓默ルメ・ロメヨメ・リメラメ・靨゚メ贅・霻ンメ簫醴゙メ瞑耡橫ワ"};
|
|
||||||
static char PY_mb_yin[] ={"メ��������昮��・�メ鋐�モ。"};
|
|
||||||
static char PY_mb_ying[] ={"モヲモ「モ、モァモ」モ・モュモッモォモィモゥモェモャモョモアモーモウモイ"};
|
|
||||||
static char PY_mb_yo[] ={"モエ"};
|
|
||||||
static char PY_mb_yong[] ={"モカモオモクモケモコモキモタモスモセモツモソモチモシモサモテ"};
|
|
||||||
static char PY_mb_you[] ={"モナモヌモトモニモネモノモフモハモヘモヒモホモムモミモマモヨモメモラモモモユモヤ"};
|
|
||||||
static char PY_mb_yu[] ={"モリモルモ衲レモ勒獗ロモ耨瞠鰌贊醺萼簽゙モワモンモ゚モ・靃・�・橆・�ヲモ��モ�・�。ヤ、モ�﨧�「モ�」モ�昞�ヤ・"};
|
|
||||||
static char PY_mb_yuan[] ={"ヤゥヤァヤィヤェヤアヤーヤォヤュヤイヤャヤョヤオヤエヤウヤッヤカヤキヤケヤコヤク"};
|
|
||||||
static char PY_mb_yue[] ={"ヤサヤシヤツヤタヤテヤトヤセヤチヤス"};
|
|
||||||
static char PY_mb_yun[] ={"ヤニヤネヤヌヤナヤハヤノヤミヤヒヤホヤヘヤマヤフ"};
|
|
||||||
static char PY_mb_za[] ={"ヤムヤモヤメユヲ"};
|
|
||||||
static char PY_mb_zai[] ={"ヤヨヤユヤヤヤラヤリヤルヤレラミ"};
|
|
||||||
static char PY_mb_zan[] ={"ヤロヤワヤンヤ゙"};
|
|
||||||
static char PY_mb_zang[] ={""};
|
|
||||||
static char PY_mb_zao[] ={""};
|
|
||||||
static char PY_mb_ze[] ={""};
|
|
||||||
static char PY_mb_zei[] ={""};
|
|
||||||
static char PY_mb_zen[] ={""};
|
|
||||||
static char PY_mb_zeng[] ={""};
|
|
||||||
static char PY_mb_zha[] ={""};
|
|
||||||
static char PY_mb_zhai[] ={"ユォユェユャオヤユュユョユッ"};
|
|
||||||
static char PY_mb_zhan[] ={"ユエユアユウユイユーユカユケユオユクユキユシユスユサユセユタユソユコ"};
|
|
||||||
static char PY_mb_zhang[] ={"ウ、ユナユツユテユトユチユヌユニユノユフユハユネユヘユヒユマユホ�"};
|
|
||||||
static char PY_mb_zhao[] ={"ユミユムユメユモユルユラユヤユユユヨユリラヲ"};
|
|
||||||
static char PY_mb_zhe[] ={"ユレユロユワユンユ゙ユ゚ユ獨籃耻瞹ナ"};
|
|
||||||
static char PY_mb_zhen[] ={"ユ・・・蒄贏靱袗釁鰈・橾靏����。"};
|
|
||||||
static char PY_mb_zheng[] ={"ユ��晥����・鋠�ヨ、ヨ」ユ�ヨ「"};
|
|
||||||
static char PY_mb_zhi[] ={"ヨョヨァヨュヨ・ヨィヨヲヨェヨッヨォヨャヨゥヨエヨカヨアヨオヨーヨイヨウヨケヨサヨシヨキヨスヨクヨコヨチヨセヨニヨトヨホヨヒヨハヨナヨソヨネヨツヨタヨフヨマヨヌヨヘヨノヨテ"};
|
|
||||||
static char PY_mb_zhong[] ={"ヨミヨメヨユヨムヨモヨヤヨラヨヨヨルヨレヨリ"};
|
|
||||||
static char PY_mb_zhou[] ={""};
|
|
||||||
static char PY_mb_zhu[] ={"ヨ・・・鰒靑櫢・��������。ヨ晙「ヨ・、ヨ�」ヨ�鋓�ヨ�"};
|
|
||||||
static char PY_mb_zhua[] ={"ラ・"};
|
|
||||||
static char PY_mb_zhuai[] ={"ラァ"};
|
|
||||||
static char PY_mb_zhuan[] ={"ラィラゥラェラォラュ"};
|
|
||||||
static char PY_mb_zhuang[]={"ラアラッラョラーラウラエエアライ"};
|
|
||||||
static char PY_mb_zhui[] ={"ラキラオラカラケラコラク"};
|
|
||||||
static char PY_mb_zhun[] ={"ラサラシ"};
|
|
||||||
static char PY_mb_zhuo[] ={"ラソラセラスラタラニラツラヌラテラトラチ"};
|
|
||||||
static char PY_mb_zi[] ={"ラホラネラノラヒラハラヘラフラムラモラマラメラヨラヤラユ"};
|
|
||||||
static char PY_mb_zong[] ={"ラレラロラリラルラララワラン"};
|
|
||||||
static char PY_mb_zou[] ={""};
|
|
||||||
static char PY_mb_zu[] ={""};
|
|
||||||
static char PY_mb_zuan[] ={""};
|
|
||||||
static char PY_mb_zui[] ={""};
|
|
||||||
static char PY_mb_zun[] ={""};
|
|
||||||
static char PY_mb_zuo[] ={""};
|
|
||||||
static char PY_mb_space[] ={""};
|
|
||||||
|
|
||||||
/*"ニエメ�菠・ィイ鰉ッツ・・カ�シカラヨトクヒ��ア・index)"*/
|
|
||||||
static struct PY_index PY_index_a[]={{"",PY_mb_a},
|
|
||||||
{"i",PY_mb_ai},
|
|
||||||
{"n",PY_mb_an},
|
|
||||||
{"ng",PY_mb_ang},
|
|
||||||
{"o",PY_mb_ao}};
|
|
||||||
static struct PY_index PY_index_b[]={{"a",PY_mb_ba},
|
|
||||||
{"ai",PY_mb_bai},
|
|
||||||
{"an",PY_mb_ban},
|
|
||||||
{"ang",PY_mb_bang},
|
|
||||||
{"ao",PY_mb_bao},
|
|
||||||
{"ei",PY_mb_bei},
|
|
||||||
{"en",PY_mb_ben},
|
|
||||||
{"eng",PY_mb_beng},
|
|
||||||
{"i",PY_mb_bi},
|
|
||||||
{"ian",PY_mb_bian},
|
|
||||||
{"iao",PY_mb_biao},
|
|
||||||
{"ie",PY_mb_bie},
|
|
||||||
{"in",PY_mb_bin},
|
|
||||||
{"ing",PY_mb_bing},
|
|
||||||
{"o",PY_mb_bo},
|
|
||||||
{"u",PY_mb_bu}};
|
|
||||||
static struct PY_index PY_index_c[]={{"a",PY_mb_ca},
|
|
||||||
{"ai",PY_mb_cai},
|
|
||||||
{"an",PY_mb_can},
|
|
||||||
{"ang",PY_mb_cang},
|
|
||||||
{"ao",PY_mb_cao},
|
|
||||||
{"e",PY_mb_ce},
|
|
||||||
{"eng",PY_mb_ceng},
|
|
||||||
{"ha",PY_mb_cha},
|
|
||||||
{"hai",PY_mb_chai},
|
|
||||||
{"han",PY_mb_chan},
|
|
||||||
{"hang",PY_mb_chang},
|
|
||||||
{"hao",PY_mb_chao},
|
|
||||||
{"he",PY_mb_che},
|
|
||||||
{"hen",PY_mb_chen},
|
|
||||||
{"heng",PY_mb_cheng},
|
|
||||||
{"hi",PY_mb_chi},
|
|
||||||
{"hong",PY_mb_chong},
|
|
||||||
{"hou",PY_mb_chou},
|
|
||||||
{"hu",PY_mb_chu},
|
|
||||||
{"huai",PY_mb_chuai},
|
|
||||||
{"huan",PY_mb_chuan},
|
|
||||||
{"huang",PY_mb_chuang},
|
|
||||||
{"hui",PY_mb_chui},
|
|
||||||
{"hun",PY_mb_chun},
|
|
||||||
{"huo",PY_mb_chuo},
|
|
||||||
{"i",PY_mb_ci},
|
|
||||||
{"ong",PY_mb_cong},
|
|
||||||
{"ou",PY_mb_cou},
|
|
||||||
{"u",PY_mb_cu},
|
|
||||||
{"uan",PY_mb_cuan},
|
|
||||||
{"ui",PY_mb_cui},
|
|
||||||
{"un",PY_mb_cun},
|
|
||||||
{"uo",PY_mb_cuo}};
|
|
||||||
static struct PY_index PY_index_d[]={{"a",PY_mb_da},
|
|
||||||
{"ai",PY_mb_dai},
|
|
||||||
{"an",PY_mb_dan},
|
|
||||||
{"ang",PY_mb_dang},
|
|
||||||
{"ao",PY_mb_dao},
|
|
||||||
{"e",PY_mb_de},
|
|
||||||
{"eng",PY_mb_deng},
|
|
||||||
{"i",PY_mb_di},
|
|
||||||
{"ian",PY_mb_dian},
|
|
||||||
{"iao",PY_mb_diao},
|
|
||||||
{"ie",PY_mb_die},
|
|
||||||
{"ing",PY_mb_ding},
|
|
||||||
{"iu",PY_mb_diu},
|
|
||||||
{"ong",PY_mb_dong},
|
|
||||||
{"ou",PY_mb_dou},
|
|
||||||
{"u",PY_mb_du},
|
|
||||||
{"uan",PY_mb_duan},
|
|
||||||
{"ui",PY_mb_dui},
|
|
||||||
{"un",PY_mb_dun},
|
|
||||||
{"uo",PY_mb_duo}};
|
|
||||||
static struct PY_index PY_index_e[]={{"",PY_mb_e},
|
|
||||||
{"n",PY_mb_en},
|
|
||||||
{"r",PY_mb_er}};
|
|
||||||
static struct PY_index PY_index_f[]={{"a",PY_mb_fa},
|
|
||||||
{"an",PY_mb_fan},
|
|
||||||
{"ang",PY_mb_fang},
|
|
||||||
{"ei",PY_mb_fei},
|
|
||||||
{"en",PY_mb_fen},
|
|
||||||
{"eng",PY_mb_feng},
|
|
||||||
{"o",PY_mb_fo},
|
|
||||||
{"ou",PY_mb_fou},
|
|
||||||
{"u",PY_mb_fu}};
|
|
||||||
static struct PY_index PY_index_g[]={{"a",PY_mb_ga},
|
|
||||||
{"ai",PY_mb_gai},
|
|
||||||
{"an",PY_mb_gan},
|
|
||||||
{"ang",PY_mb_gang},
|
|
||||||
{"ao",PY_mb_gao},
|
|
||||||
{"e",PY_mb_ge},
|
|
||||||
{"ei",PY_mb_gei},
|
|
||||||
{"en",PY_mb_gen},
|
|
||||||
{"eng",PY_mb_geng},
|
|
||||||
{"ong",PY_mb_gong},
|
|
||||||
{"ou",PY_mb_gou},
|
|
||||||
{"u",PY_mb_gu},
|
|
||||||
{"ua",PY_mb_gua},
|
|
||||||
{"uai",PY_mb_guai},
|
|
||||||
{"uan",PY_mb_guan},
|
|
||||||
{"uang",PY_mb_guang},
|
|
||||||
{"ui",PY_mb_gui},
|
|
||||||
{"un",PY_mb_gun},
|
|
||||||
{"uo",PY_mb_guo}};
|
|
||||||
static struct PY_index PY_index_h[]={{"a",PY_mb_ha},
|
|
||||||
{"ai",PY_mb_hai},
|
|
||||||
{"an",PY_mb_han},
|
|
||||||
{"ang",PY_mb_hang},
|
|
||||||
{"ao",PY_mb_hao},
|
|
||||||
{"e",PY_mb_he},
|
|
||||||
{"ei",PY_mb_hei},
|
|
||||||
{"en",PY_mb_hen},
|
|
||||||
{"eng",PY_mb_heng},
|
|
||||||
{"ong",PY_mb_hong},
|
|
||||||
{"ou",PY_mb_hou},
|
|
||||||
{"u",PY_mb_hu},
|
|
||||||
{"ua",PY_mb_hua},
|
|
||||||
{"uai",PY_mb_huai},
|
|
||||||
{"uan",PY_mb_huan},
|
|
||||||
{"uang ",PY_mb_huang},
|
|
||||||
{"ui",PY_mb_hui},
|
|
||||||
{"un",PY_mb_hun},
|
|
||||||
{"uo",PY_mb_huo}};
|
|
||||||
static struct PY_index PY_index_i[]={{"",PY_mb_space}};
|
|
||||||
static struct PY_index PY_index_j[]={{"i",PY_mb_ji},
|
|
||||||
{"ia",PY_mb_jia},
|
|
||||||
{"ian",PY_mb_jian},
|
|
||||||
{"iang",PY_mb_jiang},
|
|
||||||
{"iao",PY_mb_jiao},
|
|
||||||
{"ie",PY_mb_jie},
|
|
||||||
{"in",PY_mb_jin},
|
|
||||||
{"ing",PY_mb_jing},
|
|
||||||
{"iong",PY_mb_jiong},
|
|
||||||
{"iu",PY_mb_jiu},
|
|
||||||
{"u",PY_mb_ju},
|
|
||||||
{"uan",PY_mb_juan},
|
|
||||||
{"ue",PY_mb_jue},
|
|
||||||
{"un",PY_mb_jun}};
|
|
||||||
static struct PY_index PY_index_k[]={{"a",PY_mb_ka},
|
|
||||||
{"ai",PY_mb_kai},
|
|
||||||
{"an",PY_mb_kan},
|
|
||||||
{"ang",PY_mb_kang},
|
|
||||||
{"ao",PY_mb_kao},
|
|
||||||
{"e",PY_mb_ke},
|
|
||||||
{"en",PY_mb_ken},
|
|
||||||
{"eng",PY_mb_keng},
|
|
||||||
{"ong",PY_mb_kong},
|
|
||||||
{"ou",PY_mb_kou},
|
|
||||||
{"u",PY_mb_ku},
|
|
||||||
{"ua",PY_mb_kua},
|
|
||||||
{"uai",PY_mb_kuai},
|
|
||||||
{"uan",PY_mb_kuan},
|
|
||||||
{"uang",PY_mb_kuang},
|
|
||||||
{"ui",PY_mb_kui},
|
|
||||||
{"un",PY_mb_kun},
|
|
||||||
{"uo",PY_mb_kuo}};
|
|
||||||
static struct PY_index PY_index_l[]={{"a",PY_mb_la},
|
|
||||||
{"ai",PY_mb_lai},
|
|
||||||
{"an",PY_mb_lan},
|
|
||||||
{"ang",PY_mb_lang},
|
|
||||||
{"ao",PY_mb_lao},
|
|
||||||
{"e",PY_mb_le},
|
|
||||||
{"ei",PY_mb_lei},
|
|
||||||
{"eng",PY_mb_leng},
|
|
||||||
{"i",PY_mb_li},
|
|
||||||
{"ian",PY_mb_lian},
|
|
||||||
{"iang",PY_mb_liang},
|
|
||||||
{"iao",PY_mb_liao},
|
|
||||||
{"ie",PY_mb_lie},
|
|
||||||
{"in",PY_mb_lin},
|
|
||||||
{"ing",PY_mb_ling},
|
|
||||||
{"iu",PY_mb_liu},
|
|
||||||
{"ong",PY_mb_long},
|
|
||||||
{"ou",PY_mb_lou},
|
|
||||||
{"u",PY_mb_lu},
|
|
||||||
{"uan",PY_mb_luan},
|
|
||||||
{"ue",PY_mb_lue},
|
|
||||||
{"un",PY_mb_lun},
|
|
||||||
{"uo",PY_mb_luo},
|
|
||||||
{"v",PY_mb_lv}};
|
|
||||||
static struct PY_index PY_index_m[]={{"a",PY_mb_ma},
|
|
||||||
{"ai",PY_mb_mai},
|
|
||||||
{"an",PY_mb_man},
|
|
||||||
{"ang",PY_mb_mang},
|
|
||||||
{"ao",PY_mb_mao},
|
|
||||||
{"e",PY_mb_me},
|
|
||||||
{"ei",PY_mb_mei},
|
|
||||||
{"en",PY_mb_men},
|
|
||||||
{"eng",PY_mb_meng},
|
|
||||||
{"i",PY_mb_mi},
|
|
||||||
{"ian",PY_mb_mian},
|
|
||||||
{"iao",PY_mb_miao},
|
|
||||||
{"ie",PY_mb_mie},
|
|
||||||
{"in",PY_mb_min},
|
|
||||||
{"ing",PY_mb_ming},
|
|
||||||
{"iu",PY_mb_miu},
|
|
||||||
{"o",PY_mb_mo},
|
|
||||||
{"ou",PY_mb_mou},
|
|
||||||
{"u",PY_mb_mu}};
|
|
||||||
static struct PY_index PY_index_n[]={{"a",PY_mb_na},
|
|
||||||
{"ai",PY_mb_nai},
|
|
||||||
{"an",PY_mb_nan},
|
|
||||||
{"ang",PY_mb_nang},
|
|
||||||
{"ao",PY_mb_nao},
|
|
||||||
{"e",PY_mb_ne},
|
|
||||||
{"ei",PY_mb_nei},
|
|
||||||
{"en",PY_mb_nen},
|
|
||||||
{"eng",PY_mb_neng},
|
|
||||||
{"i",PY_mb_ni},
|
|
||||||
{"ian",PY_mb_nian},
|
|
||||||
{"iang",PY_mb_niang},
|
|
||||||
{"iao",PY_mb_niao},
|
|
||||||
{"ie",PY_mb_nie},
|
|
||||||
{"in",PY_mb_nin},
|
|
||||||
{"ing",PY_mb_ning},
|
|
||||||
{"iu",PY_mb_niu},
|
|
||||||
{"ong",PY_mb_nong},
|
|
||||||
{"u",PY_mb_nu},
|
|
||||||
{"uan",PY_mb_nuan},
|
|
||||||
{"ue",PY_mb_nue},
|
|
||||||
{"uo",PY_mb_nuo},
|
|
||||||
{"v",PY_mb_nv}};
|
|
||||||
static struct PY_index PY_index_o[]={{"",PY_mb_o},
|
|
||||||
{"u",PY_mb_ou}};
|
|
||||||
static struct PY_index PY_index_p[]={{"a",PY_mb_pa},
|
|
||||||
{"ai",PY_mb_pai},
|
|
||||||
{"an",PY_mb_pan},
|
|
||||||
{"ang",PY_mb_pang},
|
|
||||||
{"ao",PY_mb_pao},
|
|
||||||
{"ei",PY_mb_pei},
|
|
||||||
{"en",PY_mb_pen},
|
|
||||||
{"eng",PY_mb_peng},
|
|
||||||
{"i",PY_mb_pi},
|
|
||||||
{"ian",PY_mb_pian},
|
|
||||||
{"iao",PY_mb_piao},
|
|
||||||
{"ie",PY_mb_pie},
|
|
||||||
{"in",PY_mb_pin},
|
|
||||||
{"ing",PY_mb_ping},
|
|
||||||
{"o",PY_mb_po},
|
|
||||||
{"ou",PY_mb_pou},
|
|
||||||
{"u",PY_mb_pu}};
|
|
||||||
static struct PY_index PY_index_q[]={{"i",PY_mb_qi},
|
|
||||||
{"ia",PY_mb_qia},
|
|
||||||
{"ian",PY_mb_qian},
|
|
||||||
{"iang",PY_mb_qiang},
|
|
||||||
{"iao",PY_mb_qiao},
|
|
||||||
{"ie",PY_mb_qie},
|
|
||||||
{"in",PY_mb_qin},
|
|
||||||
{"ing",PY_mb_qing},
|
|
||||||
{"iong",PY_mb_qiong},
|
|
||||||
{"iu",PY_mb_qiu},
|
|
||||||
{"u",PY_mb_qu},
|
|
||||||
{"uan",PY_mb_quan},
|
|
||||||
{"ue",PY_mb_que},
|
|
||||||
{"un",PY_mb_qun}};
|
|
||||||
static struct PY_index PY_index_r[]={{"an",PY_mb_ran},
|
|
||||||
{"ang",PY_mb_rang},
|
|
||||||
{"ao",PY_mb_rao},
|
|
||||||
{"e",PY_mb_re},
|
|
||||||
{"en",PY_mb_ren},
|
|
||||||
{"eng",PY_mb_reng},
|
|
||||||
{"i",PY_mb_ri},
|
|
||||||
{"ong",PY_mb_rong},
|
|
||||||
{"ou",PY_mb_rou},
|
|
||||||
{"u",PY_mb_ru},
|
|
||||||
{"uan",PY_mb_ruan},
|
|
||||||
{"ui",PY_mb_rui},
|
|
||||||
{"un",PY_mb_run},
|
|
||||||
{"uo",PY_mb_ruo}};
|
|
||||||
static struct PY_index PY_index_s[]={{"a",PY_mb_sa},
|
|
||||||
{"ai",PY_mb_sai},
|
|
||||||
{"an",PY_mb_san},
|
|
||||||
{"ang",PY_mb_sang},
|
|
||||||
{"ao",PY_mb_sao},
|
|
||||||
{"e",PY_mb_se},
|
|
||||||
{"en",PY_mb_sen},
|
|
||||||
{"eng",PY_mb_seng},
|
|
||||||
{"ha",PY_mb_sha},
|
|
||||||
{"hai",PY_mb_shai},
|
|
||||||
{"han",PY_mb_shan},
|
|
||||||
{"hang ",PY_mb_shang},
|
|
||||||
{"hao",PY_mb_shao},
|
|
||||||
{"he",PY_mb_she},
|
|
||||||
{"hen",PY_mb_shen},
|
|
||||||
{"heng",PY_mb_sheng},
|
|
||||||
{"hi",PY_mb_shi},
|
|
||||||
{"hou",PY_mb_shou},
|
|
||||||
{"hu",PY_mb_shu},
|
|
||||||
{"hua",PY_mb_shua},
|
|
||||||
{"huai",PY_mb_shuai},
|
|
||||||
{"huan",PY_mb_shuan},
|
|
||||||
{"huang",PY_mb_shuang},
|
|
||||||
{"hui",PY_mb_shui},
|
|
||||||
{"hun",PY_mb_shun},
|
|
||||||
{"huo",PY_mb_shuo},
|
|
||||||
{"i",PY_mb_si},
|
|
||||||
{"ong",PY_mb_song},
|
|
||||||
{"ou",PY_mb_sou},
|
|
||||||
{"u",PY_mb_su},
|
|
||||||
{"uan",PY_mb_suan},
|
|
||||||
{"ui",PY_mb_sui},
|
|
||||||
{"un",PY_mb_sun},
|
|
||||||
{"uo",PY_mb_suo}};
|
|
||||||
static struct PY_index PY_index_t[]={{"a",PY_mb_ta},
|
|
||||||
{"ai",PY_mb_tai},
|
|
||||||
{"an",PY_mb_tan},
|
|
||||||
{"ang",PY_mb_tang},
|
|
||||||
{"ao",PY_mb_tao},
|
|
||||||
{"e",PY_mb_te},
|
|
||||||
{"eng",PY_mb_teng},
|
|
||||||
{"i",PY_mb_ti},
|
|
||||||
{"ian",PY_mb_tian},
|
|
||||||
{"iao",PY_mb_tiao},
|
|
||||||
{"ie",PY_mb_tie},
|
|
||||||
{"ing",PY_mb_ting},
|
|
||||||
{"ong",PY_mb_tong},
|
|
||||||
{"ou",PY_mb_tou},
|
|
||||||
{"u",PY_mb_tu},
|
|
||||||
{"uan",PY_mb_tuan},
|
|
||||||
{"ui",PY_mb_tui},
|
|
||||||
{"un",PY_mb_tun},
|
|
||||||
{"uo",PY_mb_tuo}};
|
|
||||||
static struct PY_index PY_index_u[]={{"",PY_mb_space}};
|
|
||||||
static struct PY_index PY_index_v[]={{"",PY_mb_space}};
|
|
||||||
static struct PY_index PY_index_w[]={{"a",PY_mb_wa},
|
|
||||||
{"ai",PY_mb_wai},
|
|
||||||
{"an",PY_mb_wan},
|
|
||||||
{"ang",PY_mb_wang},
|
|
||||||
{"ei",PY_mb_wei},
|
|
||||||
{"en",PY_mb_wen},
|
|
||||||
{"eng",PY_mb_weng},
|
|
||||||
{"o",PY_mb_wo},
|
|
||||||
{"u",PY_mb_wu}};
|
|
||||||
static struct PY_index PY_index_x[]={{"i",PY_mb_xi},
|
|
||||||
{"ia",PY_mb_xia},
|
|
||||||
{"ian",PY_mb_xian},
|
|
||||||
{"iang",PY_mb_xiang},
|
|
||||||
{"iao",PY_mb_xiao},
|
|
||||||
{"ie",PY_mb_xie},
|
|
||||||
{"in",PY_mb_xin},
|
|
||||||
{"ing",PY_mb_xing},
|
|
||||||
{"iong",PY_mb_xiong},
|
|
||||||
{"iu",PY_mb_xiu},
|
|
||||||
{"u",PY_mb_xu},
|
|
||||||
{"uan",PY_mb_xuan},
|
|
||||||
{"ue",PY_mb_xue},
|
|
||||||
{"un",PY_mb_xun}};
|
|
||||||
static struct PY_index PY_index_y[]={{"a",PY_mb_ya},
|
|
||||||
{"an",PY_mb_yan},
|
|
||||||
{"ang",PY_mb_yang},
|
|
||||||
{"ao",PY_mb_yao},
|
|
||||||
{"e",PY_mb_ye},
|
|
||||||
{"i",PY_mb_yi},
|
|
||||||
{"in",PY_mb_yin},
|
|
||||||
{"ing",PY_mb_ying},
|
|
||||||
{"o",PY_mb_yo},
|
|
||||||
{"ong",PY_mb_yong},
|
|
||||||
{"ou",PY_mb_you},
|
|
||||||
{"u",PY_mb_yu},
|
|
||||||
{"uan",PY_mb_yuan},
|
|
||||||
{"ue",PY_mb_yue},
|
|
||||||
{"un",PY_mb_yun}};
|
|
||||||
static struct PY_index PY_index_z[]={{"a",PY_mb_za},
|
|
||||||
{"ai",PY_mb_zai},
|
|
||||||
{"an",PY_mb_zan},
|
|
||||||
{"ang",PY_mb_zang},
|
|
||||||
{"ao",PY_mb_zao},
|
|
||||||
{"e",PY_mb_ze},
|
|
||||||
{"ei",PY_mb_zei},
|
|
||||||
{"en",PY_mb_zen},
|
|
||||||
{"eng",PY_mb_zeng},
|
|
||||||
{"ha",PY_mb_zha},
|
|
||||||
{"hai",PY_mb_zhai},
|
|
||||||
{"han",PY_mb_zhan},
|
|
||||||
{"hang",PY_mb_zhang},
|
|
||||||
{"hao",PY_mb_zhao},
|
|
||||||
{"he",PY_mb_zhe},
|
|
||||||
{"hen",PY_mb_zhen},
|
|
||||||
{"heng",PY_mb_zheng},
|
|
||||||
{"hi",PY_mb_zhi},
|
|
||||||
{"hong",PY_mb_zhong},
|
|
||||||
{"hou",PY_mb_zhou},
|
|
||||||
{"hu",PY_mb_zhu},
|
|
||||||
{"hua",PY_mb_zhua},
|
|
||||||
{"huai",PY_mb_zhuai},
|
|
||||||
{"huan",PY_mb_zhuan},
|
|
||||||
{"huang",PY_mb_zhuang},
|
|
||||||
{"hui",PY_mb_zhui},
|
|
||||||
{"hun",PY_mb_zhun},
|
|
||||||
{"huo",PY_mb_zhuo},
|
|
||||||
{"i",PY_mb_zi},
|
|
||||||
{"ong",PY_mb_zong},
|
|
||||||
{"ou",PY_mb_zou},
|
|
||||||
{"u",PY_mb_zu},
|
|
||||||
{"uan",PY_mb_zuan},
|
|
||||||
{"ui",PY_mb_zui},
|
|
||||||
{"un",PY_mb_zun},
|
|
||||||
{"uo",PY_mb_zuo}};
|
|
||||||
|
|
||||||
static struct PY_index PY_index_end[]={{"",PY_mb_space}};
|
|
||||||
|
|
||||||
static const int PY_index_headsize[]={
|
|
||||||
5,
|
|
||||||
16,
|
|
||||||
33,
|
|
||||||
20,
|
|
||||||
3,
|
|
||||||
9,
|
|
||||||
19,
|
|
||||||
19,
|
|
||||||
0,
|
|
||||||
14,
|
|
||||||
18,
|
|
||||||
24,
|
|
||||||
19,
|
|
||||||
23,
|
|
||||||
2,
|
|
||||||
17,
|
|
||||||
14,
|
|
||||||
14,
|
|
||||||
34,
|
|
||||||
19,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
9,
|
|
||||||
14,
|
|
||||||
15,
|
|
||||||
36
|
|
||||||
};
|
|
||||||
/* ・*/
|
|
||||||
static struct PY_index *PY_index_headletter[]={ PY_index_a,
|
|
||||||
PY_index_b,
|
|
||||||
PY_index_c,
|
|
||||||
PY_index_d,
|
|
||||||
PY_index_e,
|
|
||||||
PY_index_f,
|
|
||||||
PY_index_g,
|
|
||||||
PY_index_h,
|
|
||||||
PY_index_i,
|
|
||||||
PY_index_j,
|
|
||||||
PY_index_k,
|
|
||||||
PY_index_l,
|
|
||||||
PY_index_m,
|
|
||||||
PY_index_n,
|
|
||||||
PY_index_o,
|
|
||||||
PY_index_p,
|
|
||||||
PY_index_q,
|
|
||||||
PY_index_r,
|
|
||||||
PY_index_s,
|
|
||||||
PY_index_t,
|
|
||||||
PY_index_u,
|
|
||||||
PY_index_v,
|
|
||||||
PY_index_w,
|
|
||||||
PY_index_x,
|
|
||||||
PY_index_y,
|
|
||||||
PY_index_z,
|
|
||||||
PY_index_end};
|
|
||||||
|
|
||||||
enum InputStatus
|
|
||||||
{
|
|
||||||
eInputEng = 0,
|
|
||||||
eInputChi,
|
|
||||||
eSelPY,
|
|
||||||
eSelHZ,
|
|
||||||
eInputNum
|
|
||||||
};
|
|
||||||
class JGBKFont;
|
|
||||||
class JInputSystem
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
JGBKFont* mBitmapFont12;
|
|
||||||
bool mIsInputActive;
|
|
||||||
|
|
||||||
float mTimer;
|
|
||||||
//store input STRING
|
|
||||||
char mInPut[512];
|
|
||||||
char * mpInput;
|
|
||||||
//store input PY
|
|
||||||
char mPY[16];
|
|
||||||
//pointer to the HZ select string.
|
|
||||||
char *mHZ;
|
|
||||||
//input system status.
|
|
||||||
InputStatus mStatus;
|
|
||||||
//PY select
|
|
||||||
bool mEnablePYSel;
|
|
||||||
int mPYShowFirstIndex;
|
|
||||||
int mPYSelIndex;
|
|
||||||
int mPYSelTableSize;
|
|
||||||
|
|
||||||
//HZ select
|
|
||||||
int mHZShowFirstIndex;
|
|
||||||
int mHZSelIndex;
|
|
||||||
int mHZSelTableSize;
|
|
||||||
bool mIsHZ_H;
|
|
||||||
|
|
||||||
bool GetInputKey(int& a, int& b, int& c);
|
|
||||||
char* GetChinese(char* str);
|
|
||||||
int GetNexPYIndex(char* str, PY_index* &py_index);
|
|
||||||
void printf12(char* str,float x, float y, float scale=1.0f, PIXEL_TYPE color=ARGB(255,255,255,255),int type=JGETEXT_LEFT);
|
|
||||||
int strlen12( char* buff, float scale=1.0f);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
static JInputSystem* m_pJInputSystem;
|
|
||||||
static JInputSystem * GetInstance();
|
|
||||||
static void Destory();
|
|
||||||
JInputSystem(void);
|
|
||||||
virtual ~JInputSystem(void);
|
|
||||||
|
|
||||||
//Active flag
|
|
||||||
void EnableInputMode(char *buf){buf[0]=0;mpInput = buf; mIsInputActive=true;}
|
|
||||||
void DisableInputMode(){mpInput = NULL; mIsInputActive=false;}
|
|
||||||
//void SetInputActive(bool f){mIsInputActive=f;}
|
|
||||||
bool GetIsInputActive(){return mIsInputActive;}
|
|
||||||
|
|
||||||
JGBKFont* GetFont12(){return mBitmapFont12;}
|
|
||||||
|
|
||||||
//Update
|
|
||||||
void Update();
|
|
||||||
void UpdateInputEng();
|
|
||||||
void UpdateInputChi();
|
|
||||||
void UpdateSelPY();
|
|
||||||
void UpdateSelHZ();
|
|
||||||
void UpdateSelHZ_H();
|
|
||||||
void UpdateInputNum();
|
|
||||||
|
|
||||||
void Draw();
|
|
||||||
void DrawInputString(float x,float y);
|
|
||||||
void DrawStr1(char* str, float x, float y, u32 color=ARGB(255,0,0,0));
|
|
||||||
void DrawStatus(float x,float y);
|
|
||||||
void DrawPYInput(float x,float y);
|
|
||||||
void DrawPYSel(float x,float y);
|
|
||||||
void DrawHZSel(float x,float y);
|
|
||||||
void DrawHZSel_H(float x,float y);
|
|
||||||
void DrawInputHelp(float x, float y);
|
|
||||||
|
|
||||||
char * GetInputString(){return mInPut;}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -1,984 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include "../include/JGE.h"
|
|
||||||
#include "../include/JRenderer.h"
|
|
||||||
#include "../include/JLBFont.h"
|
|
||||||
#include "../include/JGBKFont.h"
|
|
||||||
#include "../include/JInputSystem.h"
|
|
||||||
|
|
||||||
char input_table[3][9][4]={
|
|
||||||
{{',','a','b','c'},{'.','d','e','f'},{'!','g','h','i'},
|
|
||||||
{'-','j','k','l'},{' ','m',' ','n'},{'?','o','p','q'},
|
|
||||||
{'(','r','s','t'},{':','u','v','w'},{')','x','y','z'}},
|
|
||||||
|
|
||||||
{{'^','A','B','C'},{'@','D','E','F'},{'*','G','H','I'},
|
|
||||||
{'_','J','K','L'},{' ','M',' ','N'},{'"','O','P','Q'},
|
|
||||||
{'=','R','S','T'},{';','U','V','W'},{'/','X','Y','Z'}},
|
|
||||||
|
|
||||||
{{'=','+','0','-'},{'^','*','1','/'},{'|','(','2',')'},
|
|
||||||
{'%','[','3',']'},{' ','4',' ','5'},{'&','{','6','}'},
|
|
||||||
{'!','<','7','>'},{'$','#','8','~'},{':','\'','9','"'}}};
|
|
||||||
|
|
||||||
JInputSystem* JInputSystem::m_pJInputSystem=NULL;
|
|
||||||
JInputSystem * JInputSystem::GetInstance()
|
|
||||||
{
|
|
||||||
if(m_pJInputSystem==NULL)
|
|
||||||
m_pJInputSystem = new JInputSystem();
|
|
||||||
return m_pJInputSystem;
|
|
||||||
}
|
|
||||||
void JInputSystem::Destory()
|
|
||||||
{
|
|
||||||
if (m_pJInputSystem!=NULL)
|
|
||||||
{
|
|
||||||
delete m_pJInputSystem;
|
|
||||||
}
|
|
||||||
m_pJInputSystem = NULL;
|
|
||||||
}
|
|
||||||
JInputSystem::JInputSystem(void)
|
|
||||||
{
|
|
||||||
//SetInputActive(false);
|
|
||||||
mIsInputActive=false;
|
|
||||||
mBitmapFont12 = NULL;
|
|
||||||
mBitmapFont12 = new JGBKFont();
|
|
||||||
mBitmapFont12->Init("ASC12", "GBK12", 12,true);
|
|
||||||
|
|
||||||
mTimer=0.0f;
|
|
||||||
mInPut[0]=0;
|
|
||||||
mpInput=NULL;
|
|
||||||
mPY[0]=0;
|
|
||||||
mStatus = eInputEng;
|
|
||||||
|
|
||||||
mEnablePYSel=false;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
mPYSelIndex=0;
|
|
||||||
mPYSelTableSize=1;
|
|
||||||
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
mHZSelIndex=0;
|
|
||||||
mHZSelTableSize=6;
|
|
||||||
mIsHZ_H=true;
|
|
||||||
mHZ=NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
JInputSystem::~JInputSystem(void)
|
|
||||||
{
|
|
||||||
if(mBitmapFont12)
|
|
||||||
delete mBitmapFont12;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
/// Update:
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
void JInputSystem::Update()
|
|
||||||
{
|
|
||||||
if (JGE::GetInstance()->GetButtonState(PSP_CTRL_DOWN) && JGE::GetInstance()->GetButtonClick(PSP_CTRL_CROSS)) // exit when the CROSS is pressed
|
|
||||||
{
|
|
||||||
JInputSystem::GetInstance()->DisableInputMode();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch(mStatus)
|
|
||||||
{
|
|
||||||
case eInputEng:
|
|
||||||
UpdateInputEng();
|
|
||||||
break;
|
|
||||||
case eInputChi:
|
|
||||||
UpdateInputChi();
|
|
||||||
break;
|
|
||||||
case eSelPY:
|
|
||||||
UpdateSelPY();
|
|
||||||
break;
|
|
||||||
case eSelHZ:
|
|
||||||
mIsHZ_H?UpdateSelHZ_H():UpdateSelHZ();
|
|
||||||
//UpdateSelHZ_H();
|
|
||||||
break;
|
|
||||||
case eInputNum:
|
|
||||||
UpdateInputNum();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// switch the input type.
|
|
||||||
if (JGE::GetInstance()->GetButtonClick(PSP_CTRL_RTRIGGER))
|
|
||||||
{
|
|
||||||
switch(mStatus)
|
|
||||||
{
|
|
||||||
case eInputEng:
|
|
||||||
mStatus = eInputChi;
|
|
||||||
break;
|
|
||||||
case eInputChi:
|
|
||||||
case eSelPY:
|
|
||||||
case eSelHZ:
|
|
||||||
mStatus = eInputNum;
|
|
||||||
mPY[0]=0;
|
|
||||||
break;
|
|
||||||
case eInputNum:
|
|
||||||
mStatus = eInputEng;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Update Timer
|
|
||||||
mTimer += JGE::GetInstance()->GetDelta();
|
|
||||||
if (mTimer > 400 || mTimer < 0)
|
|
||||||
{
|
|
||||||
mTimer = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::UpdateInputEng()
|
|
||||||
{
|
|
||||||
char* pBuf = mpInput;
|
|
||||||
int a,b,c;
|
|
||||||
if (GetInputKey(a,b,c))
|
|
||||||
{
|
|
||||||
if(b==4 && c==0)
|
|
||||||
{
|
|
||||||
int len = strlen(pBuf);
|
|
||||||
if(len>0)
|
|
||||||
{
|
|
||||||
if(pBuf[len-1]>0)
|
|
||||||
{
|
|
||||||
pBuf[len-1]=0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(len>=2)
|
|
||||||
{
|
|
||||||
if(pBuf[len-2]<0)
|
|
||||||
{
|
|
||||||
pBuf[len-2]=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
char cc[2];
|
|
||||||
cc[0]=input_table[a][b][c];
|
|
||||||
cc[1]=0;
|
|
||||||
strcat(pBuf,(cc));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::UpdateInputChi()
|
|
||||||
{
|
|
||||||
if(mStatus != eInputChi)
|
|
||||||
return;
|
|
||||||
|
|
||||||
int a,b,c;
|
|
||||||
if (GetInputKey(a,b,c))
|
|
||||||
{
|
|
||||||
if(b==4 && c==0)
|
|
||||||
{// press Backspace.
|
|
||||||
int len = strlen(mPY);
|
|
||||||
if(len>0)
|
|
||||||
{
|
|
||||||
mPY[len-1]=0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
len = strlen(mpInput);
|
|
||||||
if(len>0)
|
|
||||||
{
|
|
||||||
if(mpInput[len-1]>0)
|
|
||||||
{
|
|
||||||
mpInput[len-1]=0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(len>=2)
|
|
||||||
{
|
|
||||||
if(mpInput[len-2]<0)
|
|
||||||
{
|
|
||||||
mpInput[len-2]=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(b==4 && c==2 && mPY[0]!=0){//press Space
|
|
||||||
mStatus = mEnablePYSel?eSelPY:eSelHZ;
|
|
||||||
//mStatus = eSelPY;
|
|
||||||
}
|
|
||||||
else if(a==0 && c!=0 && !(b==4 && c==2))
|
|
||||||
{// Input PY
|
|
||||||
char cc[2];
|
|
||||||
cc[0]=input_table[a][b][c];
|
|
||||||
cc[1]=0;
|
|
||||||
strcat(mPY,(cc));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{// Input String
|
|
||||||
char cc[2];
|
|
||||||
cc[0]=input_table[a][b][c];
|
|
||||||
cc[1]=0;
|
|
||||||
strcat(mpInput,(cc));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if((JGE::GetInstance()->GetButtonClick(PSP_CTRL_RIGHT) || JGE::GetInstance()->GetButtonClick(PSP_CTRL_DOWN)) && mPY[0]!=0)
|
|
||||||
mStatus = mEnablePYSel?eSelPY:eSelHZ;
|
|
||||||
//mStatus = eSelPY;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::UpdateSelPY()
|
|
||||||
{
|
|
||||||
if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_LEFT) || JGE::GetInstance()->GetButtonClick(PSP_CTRL_CROSS))
|
|
||||||
{
|
|
||||||
mStatus = eInputChi;
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_UP))
|
|
||||||
{
|
|
||||||
mPYSelIndex--;
|
|
||||||
if (mPYSelIndex<0)
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_DOWN))
|
|
||||||
{
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(len>0 && mPYSelIndex < len-1 )
|
|
||||||
mPYSelIndex++;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_RIGHT) || JGE::GetInstance()->GetButtonClick(PSP_CTRL_CIRCLE))
|
|
||||||
mStatus = eSelHZ;
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::UpdateSelHZ()
|
|
||||||
{
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int totalLen = 0;
|
|
||||||
char* str=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(len>0 && mPYSelIndex < len)
|
|
||||||
{
|
|
||||||
str = pyindex[mPYSelIndex].PY_mb;
|
|
||||||
totalLen=strlen(str)/2;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_CROSS))
|
|
||||||
{
|
|
||||||
mStatus = eInputChi;
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
mPY[0]=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_TRIANGLE))
|
|
||||||
{
|
|
||||||
mStatus = mEnablePYSel?eSelPY:eInputChi;
|
|
||||||
//mStatus = eSelPY;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_CIRCLE))
|
|
||||||
{
|
|
||||||
int inlen = strlen(mpInput);
|
|
||||||
mpInput[inlen]=str[mHZSelIndex*2];
|
|
||||||
mpInput[inlen+1]=str[mHZSelIndex*2+1];
|
|
||||||
mpInput[inlen+2]=0;
|
|
||||||
|
|
||||||
mStatus = eInputChi;
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
mPY[0]=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_UP))
|
|
||||||
{
|
|
||||||
mHZSelIndex--;
|
|
||||||
if (mHZSelIndex<0)
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_DOWN))
|
|
||||||
{
|
|
||||||
if(len>0 && mHZSelIndex < totalLen -1)
|
|
||||||
mHZSelIndex++;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_RIGHT))
|
|
||||||
{
|
|
||||||
if(totalLen - mHZSelIndex > mHZSelTableSize)
|
|
||||||
{
|
|
||||||
mHZSelIndex+=mHZSelTableSize;
|
|
||||||
mHZShowFirstIndex+=mHZSelTableSize;
|
|
||||||
}
|
|
||||||
else if(totalLen - mHZShowFirstIndex > mHZSelTableSize && totalLen > mHZSelIndex)
|
|
||||||
{
|
|
||||||
mHZSelIndex = totalLen-1;
|
|
||||||
mHZShowFirstIndex+=mHZSelTableSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_LEFT))
|
|
||||||
{
|
|
||||||
if(mHZSelIndex>=mHZSelTableSize)
|
|
||||||
{
|
|
||||||
mHZSelIndex-=mHZSelTableSize;
|
|
||||||
mHZShowFirstIndex-=mHZSelTableSize;
|
|
||||||
if(mHZShowFirstIndex<0)
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
}
|
|
||||||
else if(mHZSelIndex > 0 && mHZShowFirstIndex > 0)
|
|
||||||
{
|
|
||||||
mHZSelIndex=0;
|
|
||||||
mHZShowFirstIndex = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
void JInputSystem::UpdateInputNum()
|
|
||||||
{
|
|
||||||
if(mStatus != eInputNum)
|
|
||||||
return;
|
|
||||||
char* pBuf = mpInput;
|
|
||||||
int a,b,c;
|
|
||||||
if (GetInputKey(a,b,c))
|
|
||||||
{
|
|
||||||
a=2;
|
|
||||||
if(b==4 && c==0)
|
|
||||||
{
|
|
||||||
int len = strlen(pBuf);
|
|
||||||
if(len>0)
|
|
||||||
{
|
|
||||||
if(pBuf[len-1]>0)
|
|
||||||
{
|
|
||||||
pBuf[len-1]=0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(len>=2)
|
|
||||||
{
|
|
||||||
if(pBuf[len-2]<0)
|
|
||||||
{
|
|
||||||
pBuf[len-2]=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
char cc[2];
|
|
||||||
cc[0]=input_table[a][b][c];
|
|
||||||
cc[1]=0;
|
|
||||||
strcat(pBuf,(cc));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
/// Draw
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
void JInputSystem::Draw()
|
|
||||||
{
|
|
||||||
DrawInputHelp(2,181);
|
|
||||||
//DrawStatus(450,3/*17*//*5*/);
|
|
||||||
|
|
||||||
float x,y;
|
|
||||||
x=SCREEN_WIDTH_F/2;
|
|
||||||
y=SCREEN_HEIGHT_F/2;
|
|
||||||
|
|
||||||
DrawStatus(x-25,y-8);
|
|
||||||
DrawInputString(x,y);
|
|
||||||
if(mStatus!=eInputEng)
|
|
||||||
{
|
|
||||||
DrawPYInput(x,y+14);
|
|
||||||
//if(mEnablePYSel)
|
|
||||||
//DrawPYSel(220,15);
|
|
||||||
|
|
||||||
mIsHZ_H?DrawHZSel_H(x,y+28):DrawHZSel(x,y+28);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawInputString( float x,float y )
|
|
||||||
{
|
|
||||||
// render text
|
|
||||||
int len = strlen12(mpInput);
|
|
||||||
|
|
||||||
int dlen=5;
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-8,len+dlen+7,15,ARGB(255,0,0,0));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-8,x+len+dlen,y-8,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y+7,x+len+dlen+1,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-8,x-7,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+len+dlen,y-8,x+len+dlen,y+7,ARGB(255,255,255,255));
|
|
||||||
|
|
||||||
if(mTimer > 200)
|
|
||||||
printf12("|",x+len+1,y);
|
|
||||||
|
|
||||||
if(len<=0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
printf12(mpInput, x+1, y);
|
|
||||||
//DrawStr1(mInPut,x,y);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawStr1( char* str, float x, float y, u32 color)
|
|
||||||
{
|
|
||||||
y+=7;
|
|
||||||
int len = strlen12(str);
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7,len+7,14,color);
|
|
||||||
printf12(str,x,y);
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-7,x+len,y-7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y+7,x+len,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-7,x-7,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+len,y-7,x+len,y+7,ARGB(255,255,255,255));
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawStatus( float x,float y )
|
|
||||||
{
|
|
||||||
switch(mStatus)
|
|
||||||
{
|
|
||||||
case eInputEng:
|
|
||||||
DrawStr1("Eng",x,y);
|
|
||||||
break;
|
|
||||||
case eInputChi:
|
|
||||||
DrawStr1("Chi",x,y);
|
|
||||||
break;
|
|
||||||
case eSelPY:
|
|
||||||
DrawStr1("PYSel",x,y);
|
|
||||||
break;
|
|
||||||
case eSelHZ:
|
|
||||||
DrawStr1("HZSel",x,y);
|
|
||||||
break;
|
|
||||||
case eInputNum:
|
|
||||||
DrawStr1("Num",x,y);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawPYInput( float x,float y )
|
|
||||||
{
|
|
||||||
if(mStatus == eInputNum || mStatus == eInputEng)
|
|
||||||
return;
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int indexlen = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(!pyindex || indexlen == 0)
|
|
||||||
{
|
|
||||||
int pylen = strlen(mPY);
|
|
||||||
if (pylen > 0)
|
|
||||||
{
|
|
||||||
mPY[strlen(mPY)-1]=0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
mPY[0]=0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int len = 6+strlen12(mPY);
|
|
||||||
if(mStatus==eInputChi)
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7,len+7,14,ARGB(255,100,100,100));
|
|
||||||
else
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7,len+7,14,ARGB(255,0,0,0));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-7,x+len,y-7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y+7,x+len,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-7,y-7,x-7,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+len,y-7,x+len,y+7,ARGB(255,255,255,255));
|
|
||||||
|
|
||||||
if(mTimer > 200 && mStatus == eInputChi)
|
|
||||||
{
|
|
||||||
char bb[8];
|
|
||||||
sprintf(bb,"%s_",mPY);
|
|
||||||
printf12(bb, x+1, y);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
char bb[8];
|
|
||||||
sprintf(bb,"%s",mPY);
|
|
||||||
printf12(bb, x+1, y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawPYSel( float x,float y )
|
|
||||||
{
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
//if(len==1)
|
|
||||||
//mStatus=eSelHZ;
|
|
||||||
if(pyindex && len>0)
|
|
||||||
{
|
|
||||||
int totalLen=len;
|
|
||||||
int startIndex=mPYShowFirstIndex;
|
|
||||||
int endIndex=mPYShowFirstIndex+(mPYSelTableSize-1);
|
|
||||||
int curIndex=mPYSelIndex-startIndex;
|
|
||||||
|
|
||||||
if(endIndex+1 >= totalLen)
|
|
||||||
endIndex=totalLen-1;
|
|
||||||
if(mPYSelIndex > endIndex)
|
|
||||||
{
|
|
||||||
startIndex += mPYSelIndex-endIndex;
|
|
||||||
mPYShowFirstIndex = startIndex;
|
|
||||||
endIndex = mPYSelIndex;
|
|
||||||
curIndex = endIndex-startIndex;
|
|
||||||
}
|
|
||||||
else if(mPYSelIndex < startIndex)
|
|
||||||
{
|
|
||||||
endIndex -= startIndex - mPYSelIndex;
|
|
||||||
mPYShowFirstIndex = endIndex -(mPYSelTableSize-1);
|
|
||||||
startIndex = mPYSelIndex;
|
|
||||||
curIndex = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int i;
|
|
||||||
unsigned int slen=0;
|
|
||||||
|
|
||||||
// count the max string len.
|
|
||||||
for(i = startIndex; i<=endIndex; i++)
|
|
||||||
{
|
|
||||||
char buf[8];
|
|
||||||
sprintf(buf," %s",((PY_index*)(pyindex+i))->PY);
|
|
||||||
buf[0]=mPY[0];
|
|
||||||
if(slen<strlen(buf))
|
|
||||||
slen = strlen(buf);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Draw back ground
|
|
||||||
slen*=6;
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
if(mStatus==eSelPY && curIndex==i)
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7+14*i,slen-2+7,14,ARGB(255,100,100,100));
|
|
||||||
else
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7+14*i,slen-2+7,14,ARGB(255,0,0,0));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y-7+14*i,x+slen-2,y-7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y+7+14*i,x+slen-2,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y-7+14*i,x-8,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+slen-2,y-7+14*i,x+slen-2,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//return;
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
char buf[8];
|
|
||||||
sprintf(buf," %s",((PY_index*)(pyindex+i+startIndex))->PY);
|
|
||||||
buf[0]=mPY[0];
|
|
||||||
printf12(buf,x,y+14*i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void JInputSystem::DrawHZSel( float x,float y )
|
|
||||||
{
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(len>0 && mPYSelIndex < len)
|
|
||||||
{
|
|
||||||
char* str = pyindex[mPYSelIndex].PY_mb;
|
|
||||||
//PSPCommonDrawUtility::GetInstance()->printf12(str,x,y);
|
|
||||||
|
|
||||||
int totalLen=strlen(str)/2;
|
|
||||||
int startIndex=mHZShowFirstIndex;
|
|
||||||
int endIndex=mHZShowFirstIndex+(mHZSelTableSize-1);
|
|
||||||
int curIndex=mHZSelIndex-startIndex;
|
|
||||||
|
|
||||||
if(endIndex+1 >= totalLen)
|
|
||||||
endIndex=totalLen-1;
|
|
||||||
if(mHZSelIndex > endIndex)
|
|
||||||
{
|
|
||||||
startIndex += mHZSelIndex-endIndex;
|
|
||||||
mHZShowFirstIndex = startIndex;
|
|
||||||
endIndex = mHZSelIndex;
|
|
||||||
curIndex = endIndex-startIndex;
|
|
||||||
}
|
|
||||||
else if(mHZSelIndex < startIndex)
|
|
||||||
{
|
|
||||||
endIndex -= startIndex - mHZSelIndex;
|
|
||||||
mHZShowFirstIndex = endIndex -(mHZSelTableSize-1);
|
|
||||||
startIndex = mHZSelIndex;
|
|
||||||
curIndex = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int i;
|
|
||||||
int slen=12;
|
|
||||||
|
|
||||||
// Draw back ground
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
if(mStatus==eSelHZ && curIndex==i)
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7+14*i,slen-2+7,14,ARGB(255,100,100,100));
|
|
||||||
else
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7,y-7+14*i,slen-2+7,14,ARGB(255,0,0,0));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y-7+14*i,x+slen-2,y-7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y+7+14*i,x+slen-2,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8,y-7+14*i,x-8,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+slen-2,y-7+14*i,x+slen-2,y+7+14*i,ARGB(255,255,255,255));
|
|
||||||
}
|
|
||||||
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
char buf[8];
|
|
||||||
buf[0]=str[(startIndex+i)*2];
|
|
||||||
buf[1]=str[(startIndex+i)*2+1];
|
|
||||||
buf[2]=0;
|
|
||||||
buf[3]=0;
|
|
||||||
printf12(buf,x+1,1+y+14*i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawInputHelp( float x, float y )
|
|
||||||
{
|
|
||||||
int a,b,c,i,j;
|
|
||||||
GetInputKey(a,b,c);
|
|
||||||
|
|
||||||
float L=90;
|
|
||||||
u32 color = ARGB(255,255,255,255);
|
|
||||||
JRenderer* renderer = JRenderer::GetInstance();
|
|
||||||
|
|
||||||
for(j=0; j<3; j++)
|
|
||||||
{
|
|
||||||
for(i=0; i<3; i++)
|
|
||||||
{
|
|
||||||
if(j+i*3==b)
|
|
||||||
renderer->FillRect(x+j*L/3,y+i*L/3,L/3,L/3,ARGB(255,100,100,100));
|
|
||||||
else
|
|
||||||
renderer->FillRect(x+j*L/3,y+i*L/3,L/3,L/3,ARGB(255,0,0,0));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
renderer->DrawLine(x, y, x+L, y, color);
|
|
||||||
renderer->DrawLine(x, y+L/3, x+L, y+L/3, color);
|
|
||||||
renderer->DrawLine(x, y+L*2/3,x+L, y+L*2/3,color);
|
|
||||||
renderer->DrawLine(x-1, y+L, x+L+1, y+L, color);
|
|
||||||
renderer->DrawLine(x, y, x, y+L,color);
|
|
||||||
renderer->DrawLine(x+L/3, y, x+L/3, y+L,color);
|
|
||||||
renderer->DrawLine(x+L*2/3,y, x+L*2/3,y+L,color);
|
|
||||||
renderer->DrawLine(x+L, y, x+L, y+L,color);
|
|
||||||
|
|
||||||
for(j=0; j<3; j++)
|
|
||||||
{
|
|
||||||
for(i=0; i<3; i++)
|
|
||||||
{
|
|
||||||
char cc[2];
|
|
||||||
cc[1]=0;
|
|
||||||
|
|
||||||
cc[0]=input_table[a][j*3+i][0];
|
|
||||||
printf12(cc, (int)(x+L/3/2+i*L/3+2), (int)(j*L/3+y+8), JGETEXT_CENTER);
|
|
||||||
cc[0]=input_table[a][j*3+i][1];
|
|
||||||
printf12(cc, (int)(x+8+i*L/3+2), (int)(j*L/3+y+L/3/2), JGETEXT_CENTER);
|
|
||||||
cc[0]=input_table[a][j*3+i][3];
|
|
||||||
printf12(cc, (int)(x+L/3-8+i*L/3+2), (int)(j*L/3+y+L/3/2), JGETEXT_CENTER);
|
|
||||||
cc[0]=input_table[a][j*3+i][2];
|
|
||||||
printf12(cc, (int)(x+L/3/2+i*L/3+2), (int)(j*L/3+y+L/3-7), JGETEXT_CENTER);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
x+=L/2/**1.5f*/;
|
|
||||||
y+=L/2-8;
|
|
||||||
printf12("%f%f",x,y);
|
|
||||||
|
|
||||||
x--;
|
|
||||||
y+=19;
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-4,y,x+4,y,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-4,y-3,x-4,y,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+4,y-3,x+4,y,ARGB(255,255,255,255));
|
|
||||||
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
///
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
bool JInputSystem::GetInputKey( int& a, int& b, int& c )
|
|
||||||
{
|
|
||||||
if(JGE::GetInstance()->GetButtonState(PSP_CTRL_LTRIGGER))
|
|
||||||
a=1;
|
|
||||||
else
|
|
||||||
a=0;
|
|
||||||
|
|
||||||
if (mStatus == eInputNum)
|
|
||||||
{
|
|
||||||
a=2;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(JGE::GetInstance()->GetAnalogX() < 50 && JGE::GetInstance()->GetAnalogY() < 50)
|
|
||||||
b=0;
|
|
||||||
else if(JGE::GetInstance()->GetAnalogX() > 50 && JGE::GetInstance()->GetAnalogX() < 200 && JGE::GetInstance()->GetAnalogY() < 50)
|
|
||||||
b=1;
|
|
||||||
else if(JGE::GetInstance()->GetAnalogX() > 200 && JGE::GetInstance()->GetAnalogY() < 50)
|
|
||||||
b=2;
|
|
||||||
else if(JGE::GetInstance()->GetAnalogY() > 50 && JGE::GetInstance()->GetAnalogY() < 200 && JGE::GetInstance()->GetAnalogX() < 50)
|
|
||||||
b=3;
|
|
||||||
if(JGE::GetInstance()->GetAnalogY() > 50 && JGE::GetInstance()->GetAnalogY() < 200 && JGE::GetInstance()->GetAnalogX() > 50 && JGE::GetInstance()->GetAnalogX() < 200)
|
|
||||||
b=4;
|
|
||||||
if(JGE::GetInstance()->GetAnalogY() > 50 && JGE::GetInstance()->GetAnalogY() < 200 && JGE::GetInstance()->GetAnalogX() > 200)
|
|
||||||
b=5;
|
|
||||||
if(JGE::GetInstance()->GetAnalogY() > 200 && JGE::GetInstance()->GetAnalogX() < 50)
|
|
||||||
b=6;
|
|
||||||
if(JGE::GetInstance()->GetAnalogY() > 200 && JGE::GetInstance()->GetAnalogX() > 50 && JGE::GetInstance()->GetAnalogX() < 200)
|
|
||||||
b=7;
|
|
||||||
if(JGE::GetInstance()->GetAnalogY() > 200 && JGE::GetInstance()->GetAnalogX() > 200)
|
|
||||||
b=8;
|
|
||||||
|
|
||||||
if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_TRIANGLE))
|
|
||||||
c=0;
|
|
||||||
else if (JGE::GetInstance()->GetButtonClick(PSP_CTRL_SQUARE))
|
|
||||||
c=1;
|
|
||||||
else if (JGE::GetInstance()->GetButtonClick(PSP_CTRL_CIRCLE))
|
|
||||||
c=3;
|
|
||||||
else if (JGE::GetInstance()->GetButtonClick(PSP_CTRL_CROSS))
|
|
||||||
c=2;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
char* JInputSystem::GetChinese( char* str)
|
|
||||||
{
|
|
||||||
char first = str[0];
|
|
||||||
char* after = str+1;
|
|
||||||
if(first=='i')return NULL; /*´úêóÆ´ÒôÊäÈ�E */
|
|
||||||
if(first=='u')return NULL;
|
|
||||||
if(first=='v')return NULL;
|
|
||||||
|
|
||||||
PY_index* py_index = PY_index_headletter[first-'a'];
|
|
||||||
const int len = PY_index_headsize[first-'a'];
|
|
||||||
for (int i=0; i<len; i++)
|
|
||||||
{
|
|
||||||
//char *PY;
|
|
||||||
//char *PY_mb;
|
|
||||||
if(stricmp(after,py_index[i].PY)==0)
|
|
||||||
return py_index[i].PY_mb;
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
int JInputSystem::GetNexPYIndex( char* str, PY_index* &py_index )
|
|
||||||
{
|
|
||||||
const unsigned int pylen = strlen(str);
|
|
||||||
if(pylen == 0 || pylen > 7)// > 6
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
int i,j;
|
|
||||||
PY_index* rt_py_index=NULL;
|
|
||||||
char first = str[0];
|
|
||||||
rt_py_index = PY_index_headletter[first-'a'];
|
|
||||||
int index_len = PY_index_headsize[first-'a'];
|
|
||||||
py_index = rt_py_index;
|
|
||||||
|
|
||||||
for(i=1; i < (int)pylen; i++)
|
|
||||||
{
|
|
||||||
for(j=0; j<index_len; j++)
|
|
||||||
{
|
|
||||||
if(str[i] == rt_py_index[j].PY[i-1])
|
|
||||||
{
|
|
||||||
rt_py_index = rt_py_index+j;
|
|
||||||
index_len -= j;
|
|
||||||
j=-1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(j!=-1)
|
|
||||||
{
|
|
||||||
py_index = NULL;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
py_index = rt_py_index;
|
|
||||||
|
|
||||||
for(i=0; i<index_len; i++)
|
|
||||||
{
|
|
||||||
for(j=1;j<(int)pylen;j++)
|
|
||||||
{
|
|
||||||
if(str[j]!=py_index[i].PY[j-1])
|
|
||||||
{
|
|
||||||
index_len = i;
|
|
||||||
return index_len;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return index_len;
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::DrawHZSel_H( float x,float y )
|
|
||||||
{
|
|
||||||
x++;
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(len>0 && mPYSelIndex < len)
|
|
||||||
{
|
|
||||||
char* str = pyindex[mPYSelIndex].PY_mb;
|
|
||||||
//PSPCommonDrawUtility::GetInstance()->printf12(str,x,y);
|
|
||||||
|
|
||||||
int totalLen=strlen(str)/2;
|
|
||||||
int startIndex=mHZShowFirstIndex;
|
|
||||||
int endIndex=mHZShowFirstIndex+(mHZSelTableSize-1);
|
|
||||||
int curIndex=mHZSelIndex-startIndex;
|
|
||||||
|
|
||||||
if(endIndex+1 >= totalLen)
|
|
||||||
endIndex=totalLen-1;
|
|
||||||
if(mHZSelIndex > endIndex)
|
|
||||||
{
|
|
||||||
startIndex += mHZSelIndex-endIndex;
|
|
||||||
mHZShowFirstIndex = startIndex;
|
|
||||||
endIndex = mHZSelIndex;
|
|
||||||
curIndex = endIndex-startIndex;
|
|
||||||
}
|
|
||||||
else if(mHZSelIndex < startIndex)
|
|
||||||
{
|
|
||||||
endIndex -= startIndex - mHZSelIndex;
|
|
||||||
mHZShowFirstIndex = endIndex -(mHZSelTableSize-1);
|
|
||||||
startIndex = mHZSelIndex;
|
|
||||||
curIndex = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int i;
|
|
||||||
int slen=12;
|
|
||||||
|
|
||||||
// Draw back ground
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
if(mStatus==eSelHZ && curIndex==i)
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7+15*i,y-7,15,slen+3,ARGB(255,100,100,100));
|
|
||||||
else
|
|
||||||
JRenderer::GetInstance()->FillRect(x-7+15*i,y-7,15,slen+3,ARGB(255,0,0,0));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8+15*i,y-7,x+slen-5+15*i,y-7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8+15*i,y+7,x+slen-4+15*i,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x-8+15*i,y-7,x-8+15*i,y+7,ARGB(255,255,255,255));
|
|
||||||
JRenderer::GetInstance()->DrawLine(x+slen-5+15*i,y-7,x+slen-5+15*i,y+7,ARGB(255,255,255,255));
|
|
||||||
}
|
|
||||||
|
|
||||||
for(i=0; i <= endIndex - startIndex; i++)
|
|
||||||
{
|
|
||||||
char buf[8];
|
|
||||||
buf[0]=str[(startIndex+i)*2];
|
|
||||||
buf[1]=str[(startIndex+i)*2+1];
|
|
||||||
buf[2]=0;
|
|
||||||
buf[3]=0;
|
|
||||||
printf12(buf,x+15*i,1+y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::UpdateSelHZ_H()
|
|
||||||
{
|
|
||||||
PY_index* pyindex=NULL;
|
|
||||||
int totalLen = 0;
|
|
||||||
char* str=NULL;
|
|
||||||
int len = GetNexPYIndex(mPY,pyindex);
|
|
||||||
if(len>0 && mPYSelIndex < len)
|
|
||||||
{
|
|
||||||
str = pyindex[mPYSelIndex].PY_mb;
|
|
||||||
totalLen=strlen(str)/2;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_CROSS))
|
|
||||||
{
|
|
||||||
mStatus = eInputChi;
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
mPY[0]=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_TRIANGLE))
|
|
||||||
{
|
|
||||||
mStatus = mEnablePYSel?eSelPY:eInputChi;
|
|
||||||
//mStatus = eSelPY;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_CIRCLE))
|
|
||||||
{
|
|
||||||
int inlen = strlen(mpInput);
|
|
||||||
mpInput[inlen]=str[mHZSelIndex*2];
|
|
||||||
mpInput[inlen+1]=str[mHZSelIndex*2+1];
|
|
||||||
mpInput[inlen+2]=0;
|
|
||||||
|
|
||||||
mStatus = eInputChi;
|
|
||||||
mPYSelIndex = 0;
|
|
||||||
mPYShowFirstIndex=0;
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
mPY[0]=0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_LEFT))
|
|
||||||
{
|
|
||||||
mHZSelIndex--;
|
|
||||||
if (mHZSelIndex<0)
|
|
||||||
mHZSelIndex = 0;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_RIGHT))
|
|
||||||
{
|
|
||||||
if(len>0 && mHZSelIndex < totalLen -1)
|
|
||||||
mHZSelIndex++;
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_DOWN))
|
|
||||||
{
|
|
||||||
if(totalLen - mHZSelIndex > mHZSelTableSize)
|
|
||||||
{
|
|
||||||
mHZSelIndex+=mHZSelTableSize;
|
|
||||||
mHZShowFirstIndex+=mHZSelTableSize;
|
|
||||||
}
|
|
||||||
else if(totalLen - mHZShowFirstIndex > mHZSelTableSize && totalLen > mHZSelIndex)
|
|
||||||
{
|
|
||||||
mHZSelIndex = totalLen-1;
|
|
||||||
mHZShowFirstIndex+=mHZSelTableSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(JGE::GetInstance()->GetButtonClick(PSP_CTRL_UP))
|
|
||||||
{
|
|
||||||
if(mHZSelIndex>=mHZSelTableSize)
|
|
||||||
{
|
|
||||||
mHZSelIndex-=mHZSelTableSize;
|
|
||||||
mHZShowFirstIndex-=mHZSelTableSize;
|
|
||||||
if(mHZShowFirstIndex<0)
|
|
||||||
mHZShowFirstIndex=0;
|
|
||||||
}
|
|
||||||
else if(mHZSelIndex > 0 && mHZShowFirstIndex > 0)
|
|
||||||
{
|
|
||||||
mHZSelIndex=0;
|
|
||||||
mHZShowFirstIndex = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void JInputSystem::printf12( char* str,float x, float y, float scale/*=1.0f*/, PIXEL_TYPE color/*=ARGB(255,255,255,255)*/,int type/*=JGETEXT_LEFT*/ )
|
|
||||||
{
|
|
||||||
mBitmapFont12->SetScale(scale);
|
|
||||||
mBitmapFont12->SetColor(color);
|
|
||||||
mBitmapFont12->RenderString((u8*)str,x,y,type);
|
|
||||||
}
|
|
||||||
|
|
||||||
int JInputSystem::strlen12( char* buff, float scale/*=1.0f*/ )
|
|
||||||
{
|
|
||||||
mBitmapFont12->SetScale(scale);
|
|
||||||
return mBitmapFont12->GetStringWidth((u8*)buff);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user