You've already forked godot
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:
@@ -1,7 +1,7 @@
|
|||||||
#include "haiku_application.h"
|
#include "haiku_application.h"
|
||||||
|
|
||||||
HaikuApplication::HaikuApplication()
|
HaikuApplication::HaikuApplication()
|
||||||
: BApplication("application/x-vnd.Haiku-GLDirectMode")
|
: BApplication("application/x-vnd.Godot")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ class HaikuApplication : public BApplication
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
HaikuApplication();
|
HaikuApplication();
|
||||||
//private:
|
|
||||||
// HaikuDirectWindow* window;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -55,8 +55,6 @@ void HaikuDirectWindow::DirectConnected(direct_buffer_info* info) {
|
|||||||
void HaikuDirectWindow::MessageReceived(BMessage* message) {
|
void HaikuDirectWindow::MessageReceived(BMessage* message) {
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case REDRAW_MSG:
|
case REDRAW_MSG:
|
||||||
Sync();
|
|
||||||
|
|
||||||
if (Main::iteration() == true) {
|
if (Main::iteration() == true) {
|
||||||
view->EnableDirectMode(false);
|
view->EnableDirectMode(false);
|
||||||
Quit();
|
Quit();
|
||||||
@@ -110,8 +108,6 @@ void HaikuDirectWindow::DispatchMessage(BMessage* message, BHandler* handler) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HaikuDirectWindow::HandleMouseButton(BMessage* message) {
|
void HaikuDirectWindow::HandleMouseButton(BMessage* message) {
|
||||||
message->PrintToStream();
|
|
||||||
|
|
||||||
BPoint where;
|
BPoint where;
|
||||||
if (message->FindPoint("where", &where) != B_OK) {
|
if (message->FindPoint("where", &where) != B_OK) {
|
||||||
return;
|
return;
|
||||||
@@ -236,7 +232,6 @@ void HaikuDirectWindow::HandleMouseWheelChanged(BMessage* message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HaikuDirectWindow::HandleKeyboardEvent(BMessage* message) {
|
void HaikuDirectWindow::HandleKeyboardEvent(BMessage* message) {
|
||||||
message->PrintToStream();
|
|
||||||
int32 raw_char = 0;
|
int32 raw_char = 0;
|
||||||
int32 key = 0;
|
int32 key = 0;
|
||||||
int32 modifiers = 0;
|
int32 modifiers = 0;
|
||||||
@@ -278,8 +273,6 @@ void HaikuDirectWindow::HandleKeyboardEvent(BMessage* message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HaikuDirectWindow::HandleKeyboardModifierEvent(BMessage* message) {
|
void HaikuDirectWindow::HandleKeyboardModifierEvent(BMessage* message) {
|
||||||
message->PrintToStream();
|
|
||||||
|
|
||||||
int32 old_modifiers = 0;
|
int32 old_modifiers = 0;
|
||||||
int32 modifiers = 0;
|
int32 modifiers = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "haiku_gl_view.h"
|
#include "haiku_gl_view.h"
|
||||||
|
|
||||||
HaikuGLView::HaikuGLView(BRect frame, uint32 type)
|
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) {
|
void HaikuGLView::Draw(BRect updateRect) {
|
||||||
Main::force_redraw();
|
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()");
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ class HaikuGLView : public BGLView
|
|||||||
public:
|
public:
|
||||||
HaikuGLView(BRect frame, uint32 type);
|
HaikuGLView(BRect frame, uint32 type);
|
||||||
virtual void AttachedToWindow(void);
|
virtual void AttachedToWindow(void);
|
||||||
virtual void MessageReceived(BMessage* msg);
|
|
||||||
virtual void MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage);
|
|
||||||
virtual void Draw(BRect updateRect);
|
virtual void Draw(BRect updateRect);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user