Merge pull request #3 from tdz/master

Orangutan kernel module [v2]
add build flag to include correct header file
remove inputdefs.h since it is useless
Using EVIOCGBIT to know correct config of input device type. This could help to get right event type to fix orangutan cannot work on emulator bug. Also, remove code such as ICS_EVENT_PROTO, ... etc.
Handle all write operations of events correctly

This change fixes the writing of events to handle all possible cases correctly. The
write operation will now continue if

  - the event buffer has only been written partially, or
  - the system call has to be restarted (signalled by EINTR);

and the write operation will now fail if

  - an error other than EINTR happens.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
make the method/variable conform to the style in the rest of the orangutan source
Fix buggy length of key_bitmask/abs_bitmask
Merge pull request #1 from AlanHuang/addEmulator
Add extra information about parameters for orangutan kernel module

See https://bugzilla.mozilla.org/show_bug.cgi?id=816734
Add a "duration" argument to the tap command

Useful for simulating a long press
Update copyright