mirror of
https://github.com/godotengine/godot.git
synced 2025-01-11 12:31:35 +00:00
Haiku: remove unneeded code
This commit is contained in:
parent
f48ce8901a
commit
ced44b45d3
@ -27,7 +27,7 @@ def get_flags():
|
||||
]
|
||||
|
||||
def configure(env):
|
||||
is64=sys.maxsize > 2**32
|
||||
is64 = sys.maxsize > 2**32
|
||||
|
||||
if (env["bits"]=="default"):
|
||||
if (is64):
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "haiku_application.h"
|
||||
|
||||
HaikuApplication::HaikuApplication()
|
||||
: BApplication("application/x-vnd.Haiku-GLDirectMode")
|
||||
: BApplication("application/x-vnd.Godot")
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -8,8 +8,6 @@ class HaikuApplication : public BApplication
|
||||
{
|
||||
public:
|
||||
HaikuApplication();
|
||||
//private:
|
||||
// HaikuDirectWindow* window;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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()");
|
||||
}
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user