gamepad 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd64f2dc52c298fd48b2dbdb8dfb759eb5e8d972
4
- data.tar.gz: af39e46a5869b99bd0834cad905014a32b78d758
3
+ metadata.gz: 06dc13f0c067750df821c16f24e8022cd12ee0de
4
+ data.tar.gz: 8737cfb7c3a4088b1eddb829b79f411836dc1a00
5
5
  SHA512:
6
- metadata.gz: 80eb5e643ced7cf0f070291c16864eece8819c4ea3900503b30c979946c4d4a3ca0f1d2263787ee4bd6cb2bc805233e1e0717ff11cea63d5160718640f60a0c0
7
- data.tar.gz: 0b32781da72d55daefc25527d5cf5e63de7f5ce64e4eccb3fb0e90c2c9c815b138cb4f7ab6aa4d531cc6d1225226a25fb97776cc858c4a37b0df7d2745c19bfc
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
@@ -2,4 +2,4 @@ require "bundler/gem_tasks"
2
2
  require 'rake/extensiontask'
3
3
  Rake::ExtensionTask.new('gamepad') do |ext|
4
4
  ext.lib_dir = File.join(*['lib', 'gamepad'])
5
- end
5
+ end
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"
@@ -1,3 +1,3 @@
1
1
  module Gamepad
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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
  - - '>='