diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-02 17:34:42 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-02 17:34:42 -0300 |
commit | 78aac544e1e77f5405260797cee4b94d7a0dfe32 (patch) | |
tree | 32a71352d3fe13f361f90f51d5389317fd4d7015 /Project/MouseEventsHandler.cpp | |
parent | 0ac91e091e52cae5745b14d62f77f905e559cf92 (diff) | |
download | PSP.git-78aac544e1e77f5405260797cee4b94d7a0dfe32.tar.gz PSP.git-78aac544e1e77f5405260797cee4b94d7a0dfe32.tar.xz PSP.git-78aac544e1e77f5405260797cee4b94d7a0dfe32.zip |
Bus controllers under implementation
Events handler removed
Diffstat (limited to 'Project/MouseEventsHandler.cpp')
-rw-r--r-- | Project/MouseEventsHandler.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Project/MouseEventsHandler.cpp b/Project/MouseEventsHandler.cpp deleted file mode 100644 index 049b9bd..0000000 --- a/Project/MouseEventsHandler.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "MouseEventsHandler.h" -#include "Bus.h" - -MouseEventsHandler::MouseEventsHandler(Workspace* workspace) : Workspace() -{ - m_workspace = workspace; -} - -MouseEventsHandler::~MouseEventsHandler() -{ -} - -void MouseEventsHandler::OnKeyDown(wxKeyEvent& event) -{ - if(event.GetKeyCode() == 'B' && !m_workspace->IsInsertMode()) { - Bus* newBus = new Bus(m_workspace->m_camera->ScreenToWorld(event.GetPosition())); - m_workspace->GetElementList().push_back(newBus); - m_workspace->SetInsertMode(); - m_workspace->Redraw(); - } - event.Skip(); -} |