[Re]Keyboard »óÅ ¾Ë¾Æ³»±â...


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :ä½Â±â 1998³â 5¿ù 22ÀÏ 08:59:43

In Reply to: [Áú¹®]Keyboard »óÅ ¾Ë¾Æ³»±â... posted by ÃÖÀ±¼® on 1998³â 5¿ù 21ÀÏ 11:53:31:

´ÙÀ½Àº Å°º¸µå À̺¥Æ®¸¦ ÅؽºÆ® ÇüÅ·ΠÃâ·ÂÇÏ´Â ¿¹ÀÔ´Ï´Ù.


public boolean handleEvent(Event keyEvent){
switch(keyEvent.id){
case Event.KEY_ACTION:
switch(keyEvent.key){
case Evnet.DOWN:
print("Key press down");
return true;
case Event.END:
print("Key press END");
return true;
case Event.F1:
print("Key press F1");
return true;
case Event.PGDN:
print("Key press PGDN");
return true;
case Event.PGUP:
print("Key press PGUP");
return true;
case Kvent.RIGHT:
print("Key press RIGHT");
return true;
}
case Event.KEY_ACTION_RELEASE:
switch(keyEvent.key){
case Event.DOWN:
print("The down arrow key");


...
}
return true;
}


if(keyEvent.controlDown())
print("Key press Ctrl Key");
if(keyEvent.shiftDown())
print("Key press Shift Key");
}


´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]