Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roKeyboard
6min
this object is used to wait for events from a usb keyboard it can also be used to configure the localization of the keyboard the javascript equivalent is keyboard docid\ mnjv4rn7rm 2fslsjtqgc object creation the rokeyboard object is created with no parameters createobject("rokeyboard") ifmessageport setport(port as romessageport) posts messages of type rokeyboardpress to the attached message port ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set ifkeyboardconfig ispresent() as boolean returns true if a usb keyboard is connected to the player this method counts a connected device as a keyboard if it reports having the following keys "a", "z", "0", "9", " ", and enter setnumlock(on off as boolean) as boolean sets the numlock state for the attached usb keyboard if passed true resets the state if passed false setlayout(layout as string) as boolean specifies the localized layout for the attached usb keyboard this setting takes effect immediately and persists in the registry after a reboot the following table lists valid keymap parameters (players are set to "us" by default) af afghanistan es spain kh cambodia pk pakistan al albania et ethiopia kr korea, republic of pl poland am armenia fi finland kz kazakhstan pt portugal at austria fo faroe islands la laos ro romania az azerbaijan fr france lk sri lanka rs serbia ba bosnia and herzegovina gb united kingdom lt lithuania ru russia bd bangladesh ge georgia lv latvia se sweden be belgium gh ghana ma morocco si slovenia bg bulgaria gn guinea md moldova sk slovakia br brazil gr greece me montenegro sn senegal bt bhutan hr croatia mk macedonia sy syria bw botswana hu hungary ml mali th thailand by belarus ie ireland mm myanmar tj tajikistan ca canada il israel mn mongolia tm turkmenistan cd congo (drc) in india mt macao tr turkey ch switzerland iq iraq mv maldives tw taiwan cm cameroon ir iran ng nigeria tz tanzania cn china is iceland nl netherlands ua ukraine cz czech republic it italy no norway us united states de germany jp japan np nepal uz uzbekistan dk denmark ke kenya pc pitcairn vn vietnam ee estonia kg kyrgyzstan ph philippines za south africa equivalent to the azerty keyboard layout the default setting