this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add scrollx and scrolly to ruby mouse() (#2692)

authored by

Matt Zykan and committed by
GitHub
2d4415fe ac30827e

+4
+4
src/api/mruby.c
··· 994 994 mrb_value sym_left = mrb_symbol_value(mrb_intern_cstr(mrb, "left")); 995 995 mrb_value sym_middle = mrb_symbol_value(mrb_intern_cstr(mrb, "middle")); 996 996 mrb_value sym_right = mrb_symbol_value(mrb_intern_cstr(mrb, "right")); 997 + mrb_value sym_scrollx = mrb_symbol_value(mrb_intern_cstr(mrb, "scrollx")); 998 + mrb_value sym_scrolly = mrb_symbol_value(mrb_intern_cstr(mrb, "scrolly")); 997 999 998 1000 tic_core* core = getMRubyMachine(mrb); tic_mem* tic = (tic_mem*)core; 999 1001 ··· 1006 1008 mrb_hash_set(mrb, hash, sym_left, mrb_bool_value(mouse->left)); 1007 1009 mrb_hash_set(mrb, hash, sym_middle, mrb_bool_value(mouse->middle)); 1008 1010 mrb_hash_set(mrb, hash, sym_right, mrb_bool_value(mouse->right)); 1011 + mrb_hash_set(mrb, hash, sym_scrollx, mrb_fixnum_value(mouse->scrollx)); 1012 + mrb_hash_set(mrb, hash, sym_scrolly, mrb_fixnum_value(mouse->scrolly)); 1009 1013 1010 1014 return hash; 1011 1015 }