Package org.spoutcraft.client.packet

Examples of org.spoutcraft.client.packet.PacketKeyPress


      if (mc.thePlayer instanceof EntityClientPlayerMP && SpoutClient.getInstance().isSpoutEnabled()) {
        EntityClientPlayerMP player = (EntityClientPlayerMP) mc.thePlayer;
        ScreenType screen = ScreenUtil.getType(this);
        int i = Keyboard.getEventKey();
        boolean keyReleased = Keyboard.getEventKeyState();
        PacketKeyPress packet = new PacketKeyPress(i, keyReleased, (MovementInputFromOptions) player.movementInput, screen);
        SpoutClient.getInstance().getPacketManager().sendSpoutPacket(packet);
      }
      ((SimpleKeyBindingManager)SpoutClient.getInstance().getKeyBindingManager()).pressKey(Keyboard.getEventKey(), Keyboard.getEventKeyState(), ScreenUtil.getType(this).getCode());
      // Spout End
      this.handleKeyboardInput();
View Full Code Here


  // Spout Start
  @Override
  public void handleKeyPress(int i, boolean keyReleased) {
    if (SpoutClient.getInstance().isSpoutEnabled()) {
      SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketKeyPress(i, keyReleased, (MovementInputFromOptions)movementInput, ScreenType.GAME_SCREEN));
    }

    super.handleKeyPress(i, keyReleased);
 
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.packet.PacketKeyPress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.