NUVIE: Fix walking when mouse button is held down

This commit is contained in:
Paul Gilbert committed 2020-05-18 21:26:12 -07:00
1 parent 58be873808
commit 4bdc9992ec
6 files changed
+5 -20

No files matched your search

+5
View File
@@ -33,6 +33,11 @@ typedef int8 sint8;
typedef int16 sint16;
typedef int32 sint32;
#define USE_BUTTON Shared::MK_LBUTTON
#define WALK_BUTTON Shared::MK_RBUTTON
#define ACTION_BUTTON Shared::MK_RBUTTON
#define DRAG_BUTTON Shared::MK_LBUTTON
typedef uint8 nuvie_game_t; // Game type (1=u6,2=md,4=se)
#define NUVIE_GAME_NONE 0
@@ -50,11 +50,6 @@
namespace Ultima {
namespace Nuvie {
#define USE_BUTTON 1 /* FIXME: put this in a common location */
#define WALK_BUTTON 3
#define ACTION_BUTTON 3
#define DRAG_BUTTON 1
#define TMP_MAP_BORDER 3
#define WRAP_VIEWP(p,p1,s) ((p1-p) < 0 ? (p1-p) + s : p1-p)
@@ -42,11 +42,6 @@
namespace Ultima {
namespace Nuvie {
#define USE_BUTTON 1 /* FIXME: put this in a common location */
#define ACTION_BUTTON 3
#define DRAG_BUTTON 1
ContainerWidget::ContainerWidget(Configuration *cfg, GUI_CallBack *callback): GUI_Widget(NULL, 0, 0, 0, 0) {
config = cfg;
callback_object = callback;
@@ -42,10 +42,6 @@
namespace Ultima {
namespace Nuvie {
#define USE_BUTTON 1 /* FIXME: put this in a common location */
#define ACTION_BUTTON 3
#define DRAG_BUTTON 1
static const byte gump_blocked_tile_data[] = {
170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,
170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,
@@ -42,10 +42,6 @@
namespace Ultima {
namespace Nuvie {
#define USE_BUTTON 1 /* FIXME: put this in a common location */
#define ACTION_BUTTON 3
#define DRAG_BUTTON 1
InventoryWidget::InventoryWidget(Configuration *cfg, GUI_CallBack *callback): GUI_Widget(NULL, 0, 0, 0, 0) {
config = cfg;
callback_object = callback;
@@ -47,8 +47,6 @@ extern GUI_status actorViewButtonCallback(void *data);
#define SE Game::get_game()->get_game_type()==NUVIE_GAME_SE
#define MD Game::get_game()->get_game_type()==NUVIE_GAME_MD
static const uint8 ACTION_BUTTON = 3;
PartyView::PartyView(Configuration *cfg) : View(cfg) {
player = NULL;
view_manager = NULL;