Top Description Fields Constructors Methods
net.java.games.input

public abstract Class Keyboard

extends AbstractController
Class Inheritance

A Keyboard is a type of controller consisting of a single controller, they keypad, which contains several axes (the keys). By default, all keys are set to receive polling data.

Field Summary

Inherited from net.java.games.input.AbstractController:
EVENT_QUEUE_DEPTH

Constructor Summary

AccessConstructor and Description
protected
Keyboard(String
The name of the keyboard
name
,
Component[] keys, Controller[] children, Rumbler[] rumblers)

Protected constructor.

Method Summary

Modifier and TypeMethod and Description
public Controller.Type
getType()

Overrides net.java.games.input.AbstractController.getType.

Implements net.java.games.input.Controller.getType.

Returns the type of the Controller.
public final boolean
Inherited from net.java.games.input.AbstractController:
getComponentgetComponentsgetControllersgetEventQueuegetNamegetNextDeviceEventgetPortNumbergetPortTypegetRumblerspollpollDevicesetDeviceEventQueueSizesetEventQueueSizetoString

Constructor Detail

Keyboardback to summary
protected Keyboard(String name, Component[] keys, Controller[] children, Rumbler[] rumblers)

Protected constructor. Subclasses should initialize the array of axes to an array of keys.

Parameters
name:String

The name of the keyboard

Method Detail

getTypeback to summary
public Controller.Type getType()

Overrides net.java.games.input.AbstractController.getType.

Implements net.java.games.input.Controller.getType.

Returns the type of the Controller.

isKeyDownback to summary
public final boolean isKeyDown(Component.Identifier.Key key_id)