Rev 31 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 31 | Rev 59 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | - | ||
2 | /*************************************************************** |
1 | /*************************************************************** |
3 | * |
2 | * |
4 | * minimal canvas to test Abstraction layer on various Phones |
3 | * minimal canvas to test Abstraction layer on various Phones |
5 | * |
4 | * |
6 | * Author: Marcus -LiGi- Bueschleb |
5 | * Author: Marcus -LiGi- Bueschleb |
Line 23... | Line 22... | ||
23 | 22 | ||
24 | private BTSearcher bt_scanner; |
23 | private BTSearcher bt_scanner; |
25 | public MKCommunicator mk=null; |
24 | public MKCommunicator mk=null; |
26 | private MKStatistics mk_stat=null; |
25 | private MKStatistics mk_stat=null; |
- | 26 | private MKParamsEditor params_editor=null; |
|
- | 27 | ||
27 | private MKParamsEditor params_editor=null; |
28 | //#if voice_mode!="no_voice" |
- | 29 | private MKStatusVoice status_voice; |
|
Line 28... | Line 30... | ||
28 | private MKStatusVoice status_voice; |
30 | //#endif |
29 | 31 | ||
Line 209... | Line 211... | ||
209 | params_editor = new MKParamsEditor(this); |
211 | params_editor = new MKParamsEditor(this); |
Line 210... | Line 212... | ||
210 | 212 | ||
211 | 213 | ||
- | 214 | mk = new MKCommunicator(root); |
|
- | 215 | mk_stat= new MKStatistics(mk); |
|
212 | mk = new MKCommunicator(root); |
216 | |
- | 217 | //#if voice_mode!="no_voice" |
|
213 | mk_stat= new MKStatistics(mk); |
218 | status_voice=new MKStatusVoice(mk); |
Line 214... | Line 219... | ||
214 | status_voice=new MKStatusVoice(mk); |
219 | //#endif |
215 | load_images(); |
220 | load_images(); |
Line 786... | Line 791... | ||
786 | 791 | ||
Line 787... | Line 792... | ||
787 | byte keycontrol_exit=0; |
792 | byte keycontrol_exit=0; |
Line -... | Line 793... | ||
- | 793 | ||
- | 794 | public final static int[] keycontrol_bitfield={0,0}; |
|
- | 795 | ||
- | 796 | ||
- | 797 | public void pointerPressed (int pointer_x, int pointer_y) |
|
- | 798 | { |
|
- | 799 | if (pointer_x<this.getWidth()/2) |
|
- | 800 | { |
|
- | 801 | if (state==STATEID_EDIT_PARAMS) |
|
- | 802 | { |
|
- | 803 | chg_state(STATEID_HANDLE_PARAMS); |
|
- | 804 | return; |
|
- | 805 | } |
|
- | 806 | ||
- | 807 | else |
|
- | 808 | if (state!=STATEID_KEYCONTROL) |
|
- | 809 | { |
|
- | 810 | chg_state(STATEID_MAINMENU); |
|
- | 811 | return; |
|
- | 812 | } |
|
- | 813 | } |
|
- | 814 | else |
|
- | 815 | { |
|
- | 816 | fullscreen=!fullscreen; |
|
- | 817 | setFullScreenMode(fullscreen); |
|
- | 818 | } |
|
788 | 819 | ||
789 | public final static int[] keycontrol_bitfield={0,0}; |
820 | } |
Line 790... | Line 821... | ||
790 | 821 | ||
791 | public void keyPressed(int keyCode) |
822 | public void keyPressed(int keyCode) |