Browse Source

Remove TextureEditor::register and unregisterAppEvents()

master
Krisjanis Rijnieks 9 years ago
parent
commit
c8ef25857d
  1. 10
      src/UserInterface/TextureEditor.cpp
  2. 2
      src/UserInterface/TextureEditor.h

10
src/UserInterface/TextureEditor.cpp

@ -13,14 +13,6 @@ TextureEditor::~TextureEditor(){
disable();
}
void TextureEditor::registerAppEvents(){
//ofAddListener(ofEvents().update, this, &TextureEditor::update);
}
void TextureEditor::unregisterAppEvents(){
//ofRemoveListener(ofEvents().update, this, &TextureEditor::update);
}
void TextureEditor::registerKeyEvents(){
ofAddListener(ofEvents().keyPressed, this, &TextureEditor::keyPressed);
ofAddListener(ofEvents().keyReleased, this, &TextureEditor::keyReleased);
@ -32,13 +24,11 @@ void TextureEditor::unregisterKeyEvents(){
}
void TextureEditor::enable(){
registerAppEvents();
registerKeyEvents();
bShiftKeyDown = false;
}
void TextureEditor::disable(){
unregisterAppEvents();
unregisterKeyEvents();
}

2
src/UserInterface/TextureEditor.h

@ -16,8 +16,6 @@ class TextureEditor {
TextureEditor();
~TextureEditor();
void registerAppEvents();
void unregisterAppEvents();
void registerKeyEvents();
void unregisterKeyEvents();
void enable();

Loading…
Cancel
Save