DirectX Media for Animation Java Reference |
![]() Previous |
![]() Classes |
![]() Index |
![]() Next |
public class Miscellany extends java.lang.Object{ // Fields public static DXMEvent leftButtonDown; public static BooleanBvr leftButtonState; public static DXMEvent leftButtonUp; public static Point2Bvr mousePosition; public static DXMEvent rightButtonDown; public static BooleanBvr rightButtonState; public static DXMEvent rightButtonUp; // Units public final static double cm; public final static double foot; public final static double inch; public final static double meter; public final static double mm; public final static double pixel; // Methods public static String getVersionString(); public static DXMEvent keyDown(int keyCode); public static BooleanBvr keyState(int keyCode); public static DXMEvent keyUp(int keyCode); }
This class holds methods and constants which don't fit neatly into other areas of the Direct Animation system. Specifically, these areas are:
public static String getVersionString();Returns the version string in the form MM.NN.BBBB, where MM is the major version, NN is the minor version, and BBBB is the build number.
Return Value:
Returns the String object.
public static DXMEvent keyDown(int keyCode);Returns an DXMEvent when a specific key is pressed. This is a state-transition event.
Return Value:
Returns the DXMEvent object. This event produces no data.
Parameter Description keyCode Can either be quoted characters such as 'a' or specific Java keycode constants.
public static BooleanBvr keyState(int keyCode);Creates a Boolean behavior that describes whether the key is up or down.
Return Value:
Returns the BooleanBvr object. The value is TRUE when the key is down and FALSE when the key is up.
Parameter Description keyCode Can either be quoted characters, such as 'a' or specific Java keycode constants.
public static DXMEvent keyUp(int keyCode);Returns an DXMEvent if a specific key is released. This is a state-transition event.
Return Value:
Returns the DXMEvent object. This event produces no data.
Parameter Description keyCode Can either be quoted characters, such as 'a' or specific Java keycode constants.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.