Phaser API Documentation

  Version: 
resetKeys()

Description:

Resets all Key objects created by this Keyboard Plugin back to their default un-pressed states. This can only reset keys created via the addKey, addKeys or createCursorKeys methods. If you have created a Key object directly you'll need to reset it yourself.

This method is called automatically when the Keyboard Plugin shuts down, but can be invoked directly at any time you require.

Returns:
Description:

This KeyboardPlugin object.

Since: 3.15.0