Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1447


Ignore:
Timestamp:
May 28, 2008, 5:41:43 AM (16 years ago)
Author:
landauf
Message:

ok, I fixed something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/Shell.cc

    r1446 r1447  
    3333#include "CoreSettings.h"
    3434#include "ConsoleCommand.h"
    35 #include "InputManager.h"
     35#include "InputInterfaces.h"
    3636
    3737#define SHELL_UPDATE_LISTENERS(function) \
     
    110110        this->inputBuffer_->registerListener(this, &Shell::hintandcomplete, '\t', true);
    111111        this->inputBuffer_->registerListener(this, &Shell::backspace, '\b', true);
    112         this->inputBuffer_->registerListener(this, &Shell::deletechar, OIS::KC_DELETE);
     112        this->inputBuffer_->registerListener(this, &Shell::deletechar, KeyCode::Delete);
    113113        this->inputBuffer_->registerListener(this, &Shell::exit, (char)27, true);
    114         this->inputBuffer_->registerListener(this, &Shell::cursor_right, OIS::KC_RIGHT);
    115         this->inputBuffer_->registerListener(this, &Shell::cursor_left, OIS::KC_LEFT);
    116         this->inputBuffer_->registerListener(this, &Shell::cursor_end, OIS::KC_END);
    117         this->inputBuffer_->registerListener(this, &Shell::cursor_home, OIS::KC_HOME);
    118         this->inputBuffer_->registerListener(this, &Shell::history_up, OIS::KC_UP);
    119         this->inputBuffer_->registerListener(this, &Shell::history_down, OIS::KC_DOWN);
    120         this->inputBuffer_->registerListener(this, &Shell::scroll_up, OIS::KC_PGUP);
    121         this->inputBuffer_->registerListener(this, &Shell::scroll_down, OIS::KC_PGDOWN);
     114        this->inputBuffer_->registerListener(this, &Shell::cursor_right, KeyCode::Right);
     115        this->inputBuffer_->registerListener(this, &Shell::cursor_left, KeyCode::Left);
     116        this->inputBuffer_->registerListener(this, &Shell::cursor_end, KeyCode::End);
     117        this->inputBuffer_->registerListener(this, &Shell::cursor_home, KeyCode::Home);
     118        this->inputBuffer_->registerListener(this, &Shell::history_up, KeyCode::Up);
     119        this->inputBuffer_->registerListener(this, &Shell::history_down, KeyCode::Down);
     120        this->inputBuffer_->registerListener(this, &Shell::scroll_up, KeyCode::PageUp);
     121        this->inputBuffer_->registerListener(this, &Shell::scroll_down, KeyCode::PageDown);
    122122    }
    123123
Note: See TracChangeset for help on using the changeset viewer.