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(); disable();
} }
void TextureEditor::registerAppEvents(){
//ofAddListener(ofEvents().update, this, &TextureEditor::update);
}
void TextureEditor::unregisterAppEvents(){
//ofRemoveListener(ofEvents().update, this, &TextureEditor::update);
}
void TextureEditor::registerKeyEvents(){ void TextureEditor::registerKeyEvents(){
ofAddListener(ofEvents().keyPressed, this, &TextureEditor::keyPressed); ofAddListener(ofEvents().keyPressed, this, &TextureEditor::keyPressed);
ofAddListener(ofEvents().keyReleased, this, &TextureEditor::keyReleased); ofAddListener(ofEvents().keyReleased, this, &TextureEditor::keyReleased);
@ -32,13 +24,11 @@ void TextureEditor::unregisterKeyEvents(){
} }
void TextureEditor::enable(){ void TextureEditor::enable(){
registerAppEvents();
registerKeyEvents(); registerKeyEvents();
bShiftKeyDown = false; bShiftKeyDown = false;
} }
void TextureEditor::disable(){ void TextureEditor::disable(){
unregisterAppEvents();
unregisterKeyEvents(); unregisterKeyEvents();
} }

2
src/UserInterface/TextureEditor.h

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

Loading…
Cancel
Save