Changeset 248

Show
Ignore:
Timestamp:
07/02/07 10:02:29 (1 year ago)
Author:
ajps
Message:

Added option to disable mouse movement (pending a better solution in 3.0.9). Fixes #164

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd0.c

    r238 r248  
    333333        int x, y; 
    334334 
     335        if (!mouse_movement) return; 
     336 
    335337        y = KEY_GRID_Y(p_ptr->command_cmd_ex); 
    336338        x = KEY_GRID_X(p_ptr->command_cmd_ex); 
  • trunk/src/defines.h

    r245 r248  
    24282428#define OPT_hide_squelchable            75 
    24292429#define OPT_auto_squelch                76 
     2430#define OPT_mouse_movement              77 
    24302431 
    24312432 
     
    25182519#define hide_squelchable                OPTION(hide_squelchable) 
    25192520#define auto_squelch                    OPTION(auto_squelch) 
     2521#define mouse_movement                  OPTION(mouse_movement) 
    25202522 
    25212523#define birth_maximize                  OPTION(birth_maximize) 
  • trunk/src/tables.c

    r245 r248  
    14741474        "hide_squelchable",                     /* OPT_hide_squelchable */ 
    14751475        "auto_squelch",                         /* OPT_auto_squelch */ 
    1476         NULL,                                          /* xxx */ 
     1476        "mouse_movement",                      /* OPT_mouse_movement */ 
    14771477        NULL,                                           /* xxx */ 
    14781478        NULL,                                           /* xxx */ 
     
    17381738        "Hide items set as squelchable",                /* OPT_hide_squelchable */ 
    17391739        "Destroy items marked as squelch automatically",        /* OPT_auto_squelch */ 
    1740         NULL,                                                                          /* xxx */ 
     1740        "Allow mouse clicks to move the player",       /* OPT_mouse_movement */ 
    17411741        NULL,                                                                           /* xxx */ 
    17421742        NULL,                                                                           /* xxx */ 
     
    20022002        FALSE,          /* OPT_hide_squelchable */ 
    20032003        FALSE,          /* OPT_auto_squelch */ 
    2004         FALSE,          /* xxx */ 
     2004        FALSE,          /* OPT_mouse_movement */ 
    20052005        FALSE,          /* xxx */ 
    20062006        FALSE,          /* xxx */ 
     
    22002200                OPT_easy_alter, 
    22012201                OPT_easy_open, 
    2202                 OPT_NONE
     2202                OPT_mouse_movement
    22032203                OPT_NONE, 
    22042204                OPT_NONE,