54eaddb27d
stuff into Narya. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2876 542714f4-19e9-0310-aa3c-eee0fc999fb1
30 lines
694 B
Java
30 lines
694 B
Java
//
|
|
// $Id: PuzzleGameUtil.java,v 1.1 2003/11/26 01:42:34 mdb Exp $
|
|
|
|
package com.threerings.puzzle.util;
|
|
|
|
import java.awt.event.KeyEvent;
|
|
import com.threerings.util.KeyTranslatorImpl;
|
|
import com.threerings.puzzle.client.PuzzleController;
|
|
|
|
/**
|
|
* Puzzle game related utilities.
|
|
*/
|
|
public class PuzzleGameUtil
|
|
{
|
|
/**
|
|
* Returns a key translator configured with basic puzzle game
|
|
* mappings.
|
|
*/
|
|
public static KeyTranslatorImpl getKeyTranslator ()
|
|
{
|
|
KeyTranslatorImpl xlate = new KeyTranslatorImpl();
|
|
|
|
// add the standard pause keys
|
|
xlate.addPressCommand(
|
|
KeyEvent.VK_P, PuzzleController.TOGGLE_CHATTING);
|
|
|
|
return xlate;
|
|
}
|
|
}
|