diff options
| author | Tom Black <[email protected]> | 2016-08-28 17:16:46 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2016-08-28 17:16:46 -0400 |
| commit | 03682597b91a4a2dfb8b2abbbc9551c68d3aa2dc (patch) | |
| tree | 375ad27f9669b22284dcb0f9e07510e0bd2347a7 /ext | |
| parent | 858e025ba48d2b7a15d30aa20f820128ceb0d8f0 (diff) | |
| download | ruby2d-03682597b91a4a2dfb8b2abbbc9551c68d3aa2dc.tar.gz ruby2d-03682597b91a4a2dfb8b2abbbc9551c68d3aa2dc.zip | |
Update `on_controller` parameters
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ruby2d/ruby2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ruby2d/ruby2d.c b/ext/ruby2d/ruby2d.c index 300198d..6971565 100644 --- a/ext/ruby2d/ruby2d.c +++ b/ext/ruby2d/ruby2d.c @@ -95,7 +95,7 @@ static void on_key_down(const char *key) { /* * Simple 2D `on_controller` input callback function */ -static void on_controller(bool is_axis, int axis, int val, bool is_btn, int btn) { +static void on_controller(int which, bool is_axis, int axis, int val, bool is_btn, int btn) { rb_funcall(self, rb_intern("controller_callback"), 5, is_axis ? Qtrue : Qfalse, INT2NUM(axis), INT2NUM(val), is_btn ? Qtrue : Qfalse, INT2NUM(btn) |
