Class: Keyboard

THREE. Keyboard


new Keyboard(desktop, options)

Parameters:
Name Type Description
desktop Computer

The desktop that the keyboard is connected to

options object

The options passed to the keyboard used for hiding & showing icons

Properties
Name Type Argument Default Description
grabDistance number <optional>
1

The distance away from the camera where the keyboard will be resized or moved

hideMoveIcon boolean <optional>
false

The boolean for hiding the move keyboard icon, set true to hide

hideResizeIcon boolean <optional>
false

The boolean for hiding resize keyboard icon, set true to hide

keyboardBGColor string <optional>
rgb(10, 10, 10)

The keyboard background color (the plate behind the keys)

keyColor string <optional>
rgb(10, 10, 10)

The default color of the keyboard keys

activeKeyColor string <optional>
rgb(10, 10, 10)

The color of a key while being pressed

highlightColor string <optional>
rgb(10, 10, 10)

The color of the key when hovering over

iconActiveColor string <optional>
rgb(10, 10, 10)

The active icon color

iconColor string <optional>
rgb(10, 10, 10)

The default icon color