By jlnr (dev)
Date 2013-04-01 08:58
This is a follow-up release to yesterday's v0.7.46. I've tried to close as many input-related tickets on github as possible:
• All: Add msOther0 - msOther7 constants for extra mouse buttons
• All: Add constants: kbBacktick, kbMinus, kbEqual, kbBracketLeft, kbBracketRight, kbBackslash, kbSemicolon, kbApostrophe, kbComma, kbPeriod, kbSlash
• Windows: Add support for up to four gamepads
• Linux: Fix button_down/button_up/TextInput (thanks @oli-obk)
• Linux: Enable optimizations in CMake build files (thanks @oli-obk)
• Mac: Work around crashes in C++ exception handling
• Mac: Fix some gamepad bugs (e.g. unplugging when Gosu is running)
• Mac: Fix a bug where Gosu processes would not terminate while a song is running
Most of these suggestions were taken from the Gosu Exchange board, so thanks everyone :)
By jlnr (dev)
Date 2013-04-01 09:38
By SPK
Date 2013-04-01 09:55
Edited 2013-04-01 10:13
Trying to update my gem gives me the following error:
RubyGosu_wrap.cxx: In function ‘void Init_gosu()’:
RubyGosu_wrap.cxx:11479:74: error: ‘kbRightMeta’ is not a member of ‘Gosu’
In file included from ../Gosu/Bitmap.hpp:9:0,
from ../Gosu/Gosu.hpp:14,
from RubyGosu_wrap.cxx:2227:
Edit: In Button.hpp#48-58
kbLeftAlt = 0x38,
#if defined(GOSU_IS_WIN)
kbRightAlt = 0xb8,
kbLeftMeta = 0xdb,
kbRightMeta = 0xdc,
#elif defined(GOSU_IS_X)
kbRightAlt = 0x64,
kbLeftMeta = 0x7d,
#else
# error this should not happen
#endif
The kbRightMeta is missing for X. It seems you merged ButtonsX and ButtonsWin. I looked at the ButtonsX but cannot determine the hex value for
kbRightMeta = XK_Meta_R. If I had to guess I would say 0x7e :)
By jlnr (dev)
Date 2013-04-01 10:12
That was a bug in Gosu 0.7.46 that has been fixed in 0.7.47 - can you please try to install again? You were probably a few minutes too early :)
Quick response. :P
Unfortunately I installed 0.7.47.
By jlnr (dev)
Date 2013-04-01 11:52
You are right. Somehow I must have pushed very old code. Not sure how this happened - fixing now...
By jlnr (dev)
Date 2013-04-01 12:05
Edited 2013-04-01 12:32
Can you please retry now, with 0.7.47.1?
It works for me on Ubuntu 12.10. Thanks for reporting this issue! :)
By SPK
Date 2013-04-01 16:58
spk@skuld:~> sudo gem update gosu
root's password:
Updating installed gems
Updating gosu
Fetching: gosu-0.7.47.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed gosu-0.7.47.1
file 'README.txt' not found
file 'COPYING' not found
file 'reference/gosu.rb' not found
file 'reference/Drawing_with_Colors.rdoc' not found
file 'reference/Order_of_Corners.rdoc' not found
file 'reference/Tileability.rdoc' not found
file 'reference/Z_Ordering.rdoc' not found
Installing ri documentation for gosu-0.7.47.1
Installing darkfish documentation for gosu-0.7.47.1
Gems updated: gosu
Working! Thousand thanks! :)
Loading...