gamepad 0.0.1 → 0.0.2
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 +4 -0
- data/Rakefile +1 -1
- data/gamepad.gemspec +4 -2
- data/lib/gamepad/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06dc13f0c067750df821c16f24e8022cd12ee0de
|
4
|
+
data.tar.gz: 8737cfb7c3a4088b1eddb829b79f411836dc1a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3493b086c007e8c95a6fb4b2738afcddd9c4666edb39c8e5443753595f68bda1c6d07b0131de7146c30109b0bff95e32d5f5eef12fccfded579606cd40911f55
|
7
|
+
data.tar.gz: bd08f0ae5c9e7d8bc7bce9f252e64be95269d26b5074d0ac05b2316b5dfe0a15681ca41b7d5cb3645bfb5cffd43f4f62df5dbcabbb370c12f371f1722878b44c
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Gamepad is a gem I wrote to get the values of my xbox1 controller in a ruby program (to control my Parrot AR drone). I plan to use it for piloting my Parrot AR drone and other robotics stuff. It wasn't designed for use in game libraries, but it might work for you.
|
4
4
|
|
5
|
+
Right now only (original) xbox1 controllers are supported. I plan to add PS1 controller support when I have time, and support for other controllers if I ever get any (and also have time).
|
6
|
+
|
5
7
|
This is my first adventure into programming a Ruby c extention, and into c itself, so this lib is probably not safe to use in production, but then who needs to interface with an xbox1 controller in production…
|
6
8
|
|
7
9
|
Gamepad is a very early dev release made for me to play around with the xbox gamepad from Ruby, the API will likely change. Pull requests welcome.
|
@@ -26,6 +28,8 @@ Or install it yourself as:
|
|
26
28
|
|
27
29
|
## Usage
|
28
30
|
|
31
|
+
Plug your xbox controller into your computer using an xbox -> USB adaptor (they're pretty cheap, I got mine off ebay) then run:
|
32
|
+
|
29
33
|
````ruby
|
30
34
|
require 'gamepad'
|
31
35
|
|
data/Rakefile
CHANGED
data/gamepad.gemspec
CHANGED
@@ -10,13 +10,15 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["will@willj.net"]
|
11
11
|
spec.description = %q{Get values from an xbox1 gamepad}
|
12
12
|
spec.summary = %q{Get values from an xbox1 gamepad}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/wjessop/gamepad"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
19
|
+
spec.require_paths = ["lib", "ext"]
|
20
|
+
|
21
|
+
spec.extensions = Dir['ext/**/extconf.rb']
|
20
22
|
|
21
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
24
|
spec.add_development_dependency "rake"
|
data/lib/gamepad/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamepad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Jessop
|
@@ -56,7 +56,8 @@ description: Get values from an xbox1 gamepad
|
|
56
56
|
email:
|
57
57
|
- will@willj.net
|
58
58
|
executables: []
|
59
|
-
extensions:
|
59
|
+
extensions:
|
60
|
+
- ext/gamepad/extconf.rb
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
62
63
|
- .gitignore
|
@@ -73,7 +74,7 @@ files:
|
|
73
74
|
- gamepad.gemspec
|
74
75
|
- lib/gamepad.rb
|
75
76
|
- lib/gamepad/version.rb
|
76
|
-
homepage:
|
77
|
+
homepage: https://github.com/wjessop/gamepad
|
77
78
|
licenses:
|
78
79
|
- MIT
|
79
80
|
metadata: {}
|
@@ -81,6 +82,7 @@ post_install_message:
|
|
81
82
|
rdoc_options: []
|
82
83
|
require_paths:
|
83
84
|
- lib
|
85
|
+
- ext
|
84
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
85
87
|
requirements:
|
86
88
|
- - '>='
|