CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 06:01:47 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=627a5f8477206f92bb1675f4f05d25a66216b06da2a13bc288ea6d350801bb29a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22JnSLtwGHqW-eN0x2jc-0caz6Fkyw50ou%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cc2516ef4c95be-BLR
diff --git a/gamemgr/bggame.cc b/gamemgr/bggame.ccindex 99ea0a8cf..d3e916414 1 - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/gamemgr/bggame.cc b/gamemgr/bggame.cc
- index 99ea0a8cf..d3e916414 100644
- --- a/gamemgr/bggame.cc
- +++ b/gamemgr/bggame.cc
- @@ -42,6 +42,7 @@
- #include "mappatch.h"
- #include "miscinf.h"
- #include "modmgr.h"
- +#include "mouse.h"
- #include "palette.h"
- #include "shapeid.h"
- #include "touchui.h"
- @@ -2182,6 +2183,13 @@ bool BG_Game::new_game(Vga_file& shapes) {
- const int menuy = topy + 110;
- std::shared_ptr<Font> font = fontManager.get_font("MENU_FONT");
- + IExultDataSource mouse_data(MAINSHP_FLX, PATCH_MAINSHP, 19);
- + newgame_mouse = new Mouse(gwin, mouse_data);
- + Mouse::mouse = newgame_mouse;
- + if (newgame_mouse
- + && !Mouse::use_touch_input) { // If not primarily touch input
- + newgame_mouse->show(); // Attempt to make the mouse visible initially
- + }
- Vga_file faces_vga;
- // Need to know if SI is installed
- const bool si_installed
- @@ -2242,6 +2250,7 @@ bool BG_Game::new_game(Vga_file& shapes) {
- do {
- Delay();
- if (redraw) {
- + Mouse::mouse->hide();
- gwin->clear_screen();
- sman->paint_shape(
- topx, topy, shapes.get_shape(0x2, 0), false,
- @@ -2282,8 +2291,13 @@ bool BG_Game::new_game(Vga_file& shapes) {
- }
- font->draw_text(
- ibuf, topx + 60, menuy + 10, disp_name, transto.data());
- + Mouse::mouse->show();
- gwin->get_win()->ShowFillGuardBand();
- redraw = false;
- + } else {
- + if (Mouse::mouse && Mouse::mouse->is_onscreen()) {
- + gwin->get_win()->ShowFillGuardBand();
- + }
- }
- SDL_Renderer* renderer
- = SDL_GetRenderer(gwin->get_win()->get_screen_window());
- @@ -2292,6 +2306,18 @@ bool BG_Game::new_game(Vga_file& shapes) {
- Uint16 keysym_unicode = 0;
- bool isTextInput = false;
- SDL_ConvertEventToRenderCoordinates(renderer, &event);
- +
- + if (event.type == SDL_EVENT_MOUSE_MOTION) {
- + int mx ;
- + int my;
- + gwin->get_win()->screen_to_game(
- + event.motion.x, event.motion.y, gwin->get_fastmouse(), mx, my);
- + Mouse::mouse->hide();
- + Mouse::mouse->move(mx, my);
- + Mouse::mouse_update = true;
- + Mouse::mouse->show();
- + }
- +
- if (event.type == SDL_EVENT_MOUSE_BUTTON_DOWN
- || event.type == SDL_EVENT_MOUSE_BUTTON_UP) {
- const SDL_Rect rectName = {topx + 10, menuy + 10, 130, 16};
- diff --git a/gamemgr/bggame.h b/gamemgr/bggame.h
- index 14938742b..8a4d1439a 100644
- --- a/gamemgr/bggame.h
- +++ b/gamemgr/bggame.h
- @@ -22,6 +22,7 @@
- #include "game.h"
- struct File_spec;
- +class Mouse;
- class BG_Game : public Game {
- public:
- @@ -55,6 +56,7 @@ class BG_Game : public Game {
- void scene_guardian();
- void scene_desk();
- void scene_moongate();
- + Mouse* newgame_mouse;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ M
JavaScript | 1 sec ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ T
JavaScript | 4 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 11 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ H
JavaScript | 12 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 15 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 23 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ O
JavaScript | 26 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 8
JavaScript | 37 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand