uinput 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/uinput/version.rb +4 -2
- data/uinput.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138b284e323a5e521fcc923aa94058bfdb6ce3b4
|
4
|
+
data.tar.gz: 4fe3b8f8856804cd93945588b7b39e09917ddb66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd72c33903fb705e22e4df692278d53a4f9864763c7a7c9a02d182890b6fbf2207d9ff4bab18d9129479779439f956abd0c1a706ed691292ec7eec2d3cb81ca9
|
7
|
+
data.tar.gz: c019ddd71246abbf28997222e1c22d65a6c152873f84626a57a73f18e2319eeeacffe3c70a4b743fb47fc5db0d839928763e737e4df34bcba96103bc9cde7184
|
data/README.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
FFI Structs and Constants of to use uinput with ruby. Depends on the [linux_input](http://github.com/christopheraue/ruby-linux_input)
|
4
4
|
gem.
|
5
5
|
|
6
|
+
This is pretty low level. For a higher level and more user friendly abstraction
|
7
|
+
have a look at the [uinput-device](http://github.com/christopheraue/ruby-uinput-device) gem.
|
8
|
+
|
6
9
|
## Installation
|
7
10
|
|
8
11
|
Add this line to your application's Gemfile:
|
@@ -85,6 +88,12 @@ event[:value] = 0
|
|
85
88
|
file.syswrite(event.pointer.read_bytes(event.size))
|
86
89
|
```
|
87
90
|
|
91
|
+
Destroying the device:
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
file.ioctl(Uinput::UI_DEV_DESTROY, nil)
|
95
|
+
```
|
96
|
+
|
88
97
|
## (Re-)Compiling the interface on a linux machine
|
89
98
|
|
90
99
|
Reads your local linux/uinput.h
|
data/lib/uinput/version.rb
CHANGED
data/uinput.gemspec
CHANGED