mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2025-12-06 08:01:59 +01:00
Website updates
This commit is contained in:
parent
196fab2d6f
commit
d8fd89c5f2
|
|
@ -21,16 +21,19 @@ often contain a native code portion to interface to the host system.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Include dependency in your project:
|
Include the dependency in your project:
|
||||||
|
|
||||||
1. Maven - Easy way
|
|
||||||
-----
|
|
||||||
```xml
|
```xml
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.java.jinput</groupId>
|
<groupId>net.java.jinput</groupId>
|
||||||
<artifactId>jinput</artifactId>
|
<artifactId>jinput</artifactId>
|
||||||
<version>{{site.jinput_version}}</version>
|
<version>{{site.jinput_version}}</version>
|
||||||
<type>pom</type>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.java.jinput</groupId>
|
||||||
|
<artifactId>jinput</artifactId>
|
||||||
|
<version>{{site.jinput_version}}</version>
|
||||||
|
<classifier>natives-all</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
You'll also need to add the build plugin in your `build/plugins` section of your pom
|
You'll also need to add the build plugin in your `build/plugins` section of your pom
|
||||||
|
|
@ -43,10 +46,15 @@ Include dependency in your project:
|
||||||
|
|
||||||
A full pom might look like [this one](https://github.com/jinput/jinput/blob/master/examples/example.pom.xml)
|
A full pom might look like [this one](https://github.com/jinput/jinput/blob/master/examples/example.pom.xml)
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
Add the jinput jar to your classpath, assuming you are using maven and have the native dependencies plugin working, it will have unpacked the native binaries to `target/natives`, you must specify the `java.library.path` property to point to this directy.
|
||||||
|
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
java -cp ~/.m2/repository/net/java/jinput/jinput/{{site.jinput_version}}/jinput-{{site.jinput_version}}.jar:target/examples-pom-{{site.jinput_version}}.jar -Djava.library.path=target/natives net.java.games.input.example.ReadFirstMouse
|
||||||
|
```
|
||||||
|
|
||||||
2. Build from sources - Experts only
|
|
||||||
-----
|
|
||||||
See the [readme.md](https://github.com/jinput/jinput)
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue