Git Product home page Git Product logo

lcdjni's Introduction

Java API for the Logitech LCD G19 gaming keyboard

David Powell [email protected] 2010-04-11

http://github.com/djpowell/lcdjni

This software is distributed under the MIT licence.


New download location: http://djpowell.net/files/lcdjni-1.0.0-rc5.zip

Description

An API for writing applets for the Logitech G19 LCD gaming keyboard.

This package provides a JNI DLL which is used by a Java API to allow applets to draw on the screen, read the softkeys, and subscribe to events. This API is a wrapper around the lglcd.h C API, so familiarity with that API may help in undestanding it.

The API should also support other compatible devices, including black & white devices such as the Logitech G15 Keyboard, but this hasn't currently been tested.


Deployment

If you are using a 32-bit JVM, you must use the 32-bit DLL.

If you are using a 64-bit JVM, you must use the 64-bit DLL.

For most client applications, the 32-bit JVM is probably the most suitable, as the 64-bit JVM doesn't currently provide a client VM in addition to the server VM.

The correct DLL should be included on the library path. The easiest way to do this is by copying it to the working directory of your application's executable jar or script. Alternatively you can use the startup flag:

-Djava.libary.path=<directory-containing-the-dll>

Running the examples

Three examples are provided:

  net.djpowell.lcdjni.examples.HelloWorld
  net.djpowell.lcdjni.examples.HelloWorldMono
  net.djpowell.lcdjni.examples.HelloWorldDual
  net.djpowell.lcdjni.examples.EventTest

To run the examples using a 32-bit JVM:

  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x86 net.djpowell.lcdjni.examples.HelloWorld
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x86 net.djpowell.lcdjni.examples.HelloWorldMono
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x86 net.djpowell.lcdjni.examples.HelloWorldDual
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x86 net.djpowell.lcdjni.examples.EventTest

To run the examples using a 64-bit JVM:

  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x64 net.djpowell.lcdjni.examples.HelloWorld
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x64 net.djpowell.lcdjni.examples.HelloWorldMono
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x64 net.djpowell.lcdjni.examples.HelloWorldDual
  java -cp lcdjni.jar;lcdjni-examples.jar -Djava.library.path=x64 net.djpowell.lcdjni.examples.EventTest

Notes

LCD Manager uses the executable name of your process to support auto startable applications. Therefore, it only makes sense to pass 'true' to the isAutoStartable parameter of the LcdConnection constructor if you have some way to start your java application using a command-line that doesn't require parameters. For example, by launching Java using the JNI invocation API.

lcdjni's People

Contributors

djpowell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.