src/main/beos/SDL_BApp.h
changeset 6950 1ddb72193079
parent 6885 700f1b25f77f
child 7191 75360622e65f
equal deleted inserted replaced
6949:4de584a3a027 6950:1ddb72193079
   219 			msg->FindInt32("y", &y) != B_OK    /* y movement */
   219 			msg->FindInt32("y", &y) != B_OK    /* y movement */
   220 		) {
   220 		) {
   221 			return;
   221 			return;
   222 		}
   222 		}
   223 		win = GetSDLWindow(winID);
   223 		win = GetSDLWindow(winID);
   224 		SDL_SendMouseMotion(win, 0, x, y);
   224 		SDL_SendMouseMotion(win, 0, 0, x, y);
   225 		
   225 		
   226 		/* Tell the application that the mouse passed over, redraw needed */
   226 		/* Tell the application that the mouse passed over, redraw needed */
   227 		BE_UpdateWindowFramebuffer(NULL,win,NULL,-1);
   227 		BE_UpdateWindowFramebuffer(NULL,win,NULL,-1);
   228 	}
   228 	}
   229 	
   229 	
   237 			msg->FindInt32("button-state", &state) != B_OK
   237 			msg->FindInt32("button-state", &state) != B_OK
   238 		) {
   238 		) {
   239 			return;
   239 			return;
   240 		}
   240 		}
   241 		win = GetSDLWindow(winID);
   241 		win = GetSDLWindow(winID);
   242 		SDL_SendMouseButton(win, state, button);
   242 		SDL_SendMouseButton(win, 0, state, button);
   243 	}
   243 	}
   244 	
   244 	
   245 	void _HandleMouseWheel(BMessage *msg) {
   245 	void _HandleMouseWheel(BMessage *msg) {
   246 		SDL_Window *win;
   246 		SDL_Window *win;
   247 		int32 winID;
   247 		int32 winID;
   252 			msg->FindInt32("yticks", &yTicks) != B_OK
   252 			msg->FindInt32("yticks", &yTicks) != B_OK
   253 		) {
   253 		) {
   254 			return;
   254 			return;
   255 		}
   255 		}
   256 		win = GetSDLWindow(winID);
   256 		win = GetSDLWindow(winID);
   257 		SDL_SendMouseWheel(win, xTicks, yTicks);
   257 		SDL_SendMouseWheel(win, 0, xTicks, yTicks);
   258 	}
   258 	}
   259 	
   259 	
   260 	void _HandleKey(BMessage *msg) {
   260 	void _HandleKey(BMessage *msg) {
   261 		int32 scancode, state;	/* scancode, pressed/released */
   261 		int32 scancode, state;	/* scancode, pressed/released */
   262 		if(
   262 		if(