Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 966


Ignore:
Timestamp:
Mar 30, 2008, 9:27:04 PM (16 years ago)
Author:
landauf
Message:

added clipboard support (at the moment only for windows, but this will be expanded to other systems)

Location:
code/branches/core2/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/core/CMakeLists.txt

    r955 r966  
    2828TARGET_LINK_LIBRARIES( core
    2929  util
     30  ${OIS_LIBRARIES}
    3031)
  • code/branches/core2/src/orxonox/core/InputBuffer.cc

    r955 r966  
    2929
    3030#include "InputBuffer.h"
     31#include "util/Clipboard.h"
    3132
    3233namespace orxonox
     
    132133        }
    133134
     135        if (this->keyboard_->isModifierDown(OIS::Keyboard::Ctrl))
     136        {
     137            if (e.key == OIS::KC_V)
     138            {
     139                this->append(fromClipboard());
     140                return true;
     141            }
     142            else if (e.key == OIS::KC_C)
     143            {
     144                toClipboard(this->buffer_);
     145                return true;
     146            }
     147            else if (e.key == OIS::KC_X)
     148            {
     149                toClipboard(this->buffer_);
     150                this->clear();
     151                return true;
     152            }
     153        }
     154        else if (this->keyboard_->isModifierDown(OIS::Keyboard::Shift))
     155        {
     156            if (e.key == OIS::KC_INSERT)
     157            {
     158                this->append(fromClipboard());
     159                return true;
     160            }
     161            else if (e.key == OIS::KC_DELETE)
     162            {
     163                toClipboard(this->buffer_);
     164                this->clear();
     165                return true;
     166            }
     167        }
     168
    134169        if (this->bActivated_)
    135170        {
  • code/branches/core2/src/util/CMakeLists.txt

    r871 r966  
    66  Math.cc
    77  String.cc
     8  Clipboard.cc
    89  SubString.cc
    910  MultiTypePrimitive.cc
Note: See TracChangeset for help on using the changeset viewer.