}
void
-JoystickConfig::read(const lisp::Lisp* joystick_lisp)
+JoystickConfig::read(const lisp::Lisp& joystick_lisp)
{
- joystick_lisp->get("dead-zone", dead_zone);
- joystick_lisp->get("jump-with-up", jump_with_up_joy);
+ joystick_lisp.get("dead-zone", dead_zone);
+ joystick_lisp.get("jump-with-up", jump_with_up_joy);
- lisp::ListIterator iter(joystick_lisp);
+ lisp::ListIterator iter(&joystick_lisp);
while(iter.next())
{
if (iter.item() == "map")
void bind_joyaxis(JoyId joy_id, int axis, Controller::Control c);
void bind_joyhat(JoyId joy_id, int dir, Controller::Control c);
- void read(const lisp::Lisp* joystick_lisp);
+ void read(const lisp::Lisp& joystick_lisp);
void write(Writer& writer);
private:
const lisp::Lisp* keymap_lisp = config_control_lisp->get_lisp("keymap");
if (keymap_lisp)
{
- keyboard_config.read(*config_control_lisp);
+ keyboard_config.read(*keymap_lisp);
}
const lisp::Lisp* joystick_lisp = config_control_lisp->get_lisp("joystick");
if (joystick_lisp)
{
- joystick_config.read(joystick_lisp);
+ joystick_config.read(*joystick_lisp);
}
}