int actionButtonId = c.getInStream().readUnsignedWord();


This is correct is it not?