# Uses of Interface org.newdawn.slick.command.Command (Slick - The 2D Library)
Date: 2013-06-03

## Uses of Interface
org.newdawn.slick.command.Command

Packages that use Command
org.newdawn.slick.command: Provides abstract input by mapping physical device inputs (mouse, keyboard and controllers) to abstract commands that are relevant to a particular game.
org.newdawn.slick.tests: Tests for the facilities provided by the library.

Uses of Command in org.newdawn.slick.command

Classes in org.newdawn.slick.command that implement Command
`class` `BasicCommand` A simple named command

Methods in org.newdawn.slick.command with parameters of type Command
`void` `InputProvider.bindCommand(Control control, Command command)` Bind an command to a control.
`void` `InputProvider.clearCommand(Command command)` Clear all the controls that have been configured for a given command
`void` `InputProviderListener.controlPressed(Command command)` A control representing an control was pressed relating to a given command.
`void` `InputProviderListener.controlReleased(Command command)` A control representing an control was released relating to a given command.
`protected void` `InputProvider.firePressed(Command command)` Fire notification to any interested listeners that a control has been pressed indication an particular command
`protected void` `InputProvider.fireReleased(Command command)` Fire notification to any interested listeners that a control has been released indication an particular command should be stopped
`java.util.List` `InputProvider.getControlsFor(Command command)` Get a list of the registered controls (@see Control) that can cause a particular command to be invoked
`boolean` `InputProvider.isCommandControlDown(Command command)` Check if the last control event we recieved related to the given command indicated that a control was down
`boolean` `InputProvider.isCommandControlPressed(Command command)` Check if one of the controls related to the command specified has been pressed since we last called this method

Uses of Command in org.newdawn.slick.tests

Methods in org.newdawn.slick.tests with parameters of type Command
`void` `InputProviderTest.controlPressed(Command command)`
`void` `InputProviderTest.controlReleased(Command command)`

Copyright © 2006 New Dawn Software. All Rights Reserved.