In the attached .zip is a project that includes and demonstrates the use of three code modules. Keyboard.bas and Mouse.bas wrap the Arduino Keyboard and Mouse libraries using their own syntax.
Reference: https://www.arduino.cc/en/Reference/MouseKeyboard
There is also a Robo.bas module that uses the same syntax as the jAWTRobot library. This enables you to use the jAWTRobot library in B4J to test out code before pasting it into a B4R project.
This library works only on boards that don't use a dedicated USB-Serial chip (like an FTDI chip or a CH340). The Leonardo and the Pro Micro are examples of boards where the main processor also provides USB functionality. These boards can make use of these code modules.
Reference: https://www.arduino.cc/en/Reference/MouseKeyboard
There is also a Robo.bas module that uses the same syntax as the jAWTRobot library. This enables you to use the jAWTRobot library in B4J to test out code before pasting it into a B4R project.
This library works only on boards that don't use a dedicated USB-Serial chip (like an FTDI chip or a CH340). The Leonardo and the Pro Micro are examples of boards where the main processor also provides USB functionality. These boards can make use of these code modules.