Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/ObjectTypes/CHotkeyPicker.cpp
Show All 13 Lines | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "CHotkeyPicker.h" | #include "CHotkeyPicker.h" | ||||
#include "gui/ObjectBases/IGUIObject.h" | |||||
#include "lib/timer.h" | #include "lib/timer.h" | ||||
#include "ps/CLogger.h" | |||||
#include "ps/Hotkey.h" | #include "ps/Hotkey.h" | ||||
#include "ps/KeyName.h" | #include "ps/KeyName.h" | ||||
#include "scriptinterface/ScriptConversions.h" | #include "scriptinterface/ScriptConversions.h" | ||||
const CStr CHotkeyPicker::EventNameCombination = "Combination"; | const CStr CHotkeyPicker::EventNameCombination = "Combination"; | ||||
const CStr CHotkeyPicker::EventNameKeyChange = "KeyChange"; | const CStr CHotkeyPicker::EventNameKeyChange = "KeyChange"; | ||||
// Don't send the scancode, JS doesn't care. | // Don't send the scancode, JS doesn't care. | ||||
template<> void ScriptInterface::ToJSVal(const ScriptRequest& rq, JS::MutableHandleValue ret, const CHotkeyPicker::Key& val) | template<> void ScriptInterface::ToJSVal(const ScriptRequest& rq, JS::MutableHandleValue ret, const CHotkeyPicker::Key& val) | ||||
{ | { | ||||
ScriptInterface::ToJSVal(rq, ret, val.scancodeName); | ScriptInterface::ToJSVal(rq, ret, val.scancodeName); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator