コード例 #1
0
 /**
  * Reads a ButtonCondAction instance from a bit stream.
  *
  * @param stream the input bit stream
  * @throws IOException if an I/O error has occured
  */
 public ButtonCondAction(InputBitStream stream) throws IOException {
   idleToOverDown = stream.readBooleanBit();
   outDownToIdle = stream.readBooleanBit();
   outDownToOverDown = stream.readBooleanBit();
   overDownToOutDown = stream.readBooleanBit();
   overDownToOverUp = stream.readBooleanBit();
   overUpToOverDown = stream.readBooleanBit();
   overUpToIdle = stream.readBooleanBit();
   idleToOverUp = stream.readBooleanBit();
   keyPress = (byte) stream.readUnsignedBits(7);
   overDownToIdle = stream.readBooleanBit();
   //    actions             = new ActionBlock(stream);
   actions = ActionBlock.getInstance();
   actions.read(stream);
 }
コード例 #2
0
 /** Creates a new ButtonCondAction instance. */
 public ButtonCondAction() {
   actions = ActionBlock.getInstance();
 }