1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Haiku: remove unneeded code

This commit is contained in:
Kostadin Damyanov
2015-08-12 22:14:40 +03:00
parent f48ce8901a
commit ced44b45d3
6 changed files with 3 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#include "haiku_application.h"
HaikuApplication::HaikuApplication()
: BApplication("application/x-vnd.Haiku-GLDirectMode")
: BApplication("application/x-vnd.Godot")
{
}

View File

@@ -8,8 +8,6 @@ class HaikuApplication : public BApplication
{
public:
HaikuApplication();
//private:
// HaikuDirectWindow* window;
};
#endif

View File

@@ -55,8 +55,6 @@ void HaikuDirectWindow::DirectConnected(direct_buffer_info* info) {
void HaikuDirectWindow::MessageReceived(BMessage* message) {
switch (message->what) {
case REDRAW_MSG:
Sync();
if (Main::iteration() == true) {
view->EnableDirectMode(false);
Quit();
@@ -110,8 +108,6 @@ void HaikuDirectWindow::DispatchMessage(BMessage* message, BHandler* handler) {
}
void HaikuDirectWindow::HandleMouseButton(BMessage* message) {
message->PrintToStream();
BPoint where;
if (message->FindPoint("where", &where) != B_OK) {
return;
@@ -236,7 +232,6 @@ void HaikuDirectWindow::HandleMouseWheelChanged(BMessage* message) {
}
void HaikuDirectWindow::HandleKeyboardEvent(BMessage* message) {
message->PrintToStream();
int32 raw_char = 0;
int32 key = 0;
int32 modifiers = 0;
@@ -278,8 +273,6 @@ void HaikuDirectWindow::HandleKeyboardEvent(BMessage* message) {
}
void HaikuDirectWindow::HandleKeyboardModifierEvent(BMessage* message) {
message->PrintToStream();
int32 old_modifiers = 0;
int32 modifiers = 0;

View File

@@ -2,7 +2,7 @@
#include "haiku_gl_view.h"
HaikuGLView::HaikuGLView(BRect frame, uint32 type)
: BGLView(frame, "SampleGLView", B_FOLLOW_ALL_SIDES, 0, type)
: BGLView(frame, "GodotGLView", B_FOLLOW_ALL_SIDES, 0, type)
{
}
@@ -16,16 +16,3 @@ void HaikuGLView::AttachedToWindow(void) {
void HaikuGLView::Draw(BRect updateRect) {
Main::force_redraw();
}
void HaikuGLView::MessageReceived(BMessage* msg)
{
// TODO: remove if not needed
switch (msg->what) {
default:
BGLView::MessageReceived(msg);
}
}
void HaikuGLView::MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage) {
ERR_PRINT("MouseMoved()");
}

View File

@@ -9,8 +9,6 @@ class HaikuGLView : public BGLView
public:
HaikuGLView(BRect frame, uint32 type);
virtual void AttachedToWindow(void);
virtual void MessageReceived(BMessage* msg);
virtual void MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage);
virtual void Draw(BRect updateRect);
};