#! /bin/sh /usr/share/dpatch/dpatch-run ## 30_guichan_keybind_update.dpatch by <[EMAIL PROTECTED]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description.
@DPATCH@ diff -urNad balder2d-1.0~rc1~/include/menu/playersetup.h balder2d-1.0~rc1/include/menu/playersetup.h --- balder2d-1.0~rc1~/include/menu/playersetup.h 2006-10-15 23:42:21.000000000 -0700 +++ balder2d-1.0~rc1/include/menu/playersetup.h 2007-10-17 19:28:11.000000000 -0700 @@ -80,9 +80,9 @@ public: KeyBindButton(const std::string& caption, PlayerSetupMenu* m): gcn::Button(caption), menu(m){} - void keyPress(const gcn::Key& key) + virtual void keyPressed(gcn::KeyEvent& keyEvent) { - menu->BindKey(key); + menu->BindKey(keyEvent.getKey()); } }; }