Author Topic: Mouse click-lock for minecraft [super easy]  (Read 4764 times)

lazarus

  • Newbie
  • *
  • Posts: 4
Mouse click-lock for minecraft [super easy]
« on: January 24, 2013, 12:03:35 am »
Being a minecraft fan I find myself pressing and holding the left mouse button very often.
Espacially when playing SkyMap and mining for cobblestone at the cobblestone generator.

I used to balance heavy objects on my left mouse button but that's all but stable or fun.

Having some Digisparks laying around I thought I put one to use :)

I created a very very simple program (modified a sample)

Now I just need to insert the digispark and my left mouse button locks in left-click position :)

The Code (removed all comments)

Code: [Select]
#include "DigiMouse.h"
void setup() {}
void loop() {
  DigiMouse.update();
  DigiMouse.setButtons(1<<0);
}

Next I'll take a look at connecting some buttons to the available IO's to make it a litle smarter and customizable.