Version2.0/Keyboard

Last-modified: 2009-03-28 (土) 15:25:25

(All methods are shared)

  • String Keyboard.input(maxLength, normalColor, pressedColor, bgColorUp, bgColorDown, textColorUp, textColorDown)
    Draw a keyboard. The user can enter a string. The function returns this string
    maxLength (Number): max length of the string entered
    normalColor (String): color of the keyboard (Keyboard.color.[COLOR] where [COLOR] can be gray, red, blue, green or yellow)
    pressedColor (String): color of the pressed keys (Keyboard.color.[COLOR] where [COLOR] can be gray, red, blue, green or yellow)
    bgColorUp (Color): color of the background of the upper screen
    bgColorDown (Color): color of the background of the upper lower
    textColorUp (Color): color of the text of the upper screen
    textColorDown (Color): color of the text of the lower screen