~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/itgambl3.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include "sound/okim6295.h"
46
46
 
47
47
 
 
48
static int test_x, test_y, start_offs;
 
49
 
48
50
/*************************
49
51
*     Video Hardware     *
50
52
*************************/
51
53
 
52
54
static VIDEO_START( itgambl3 )
53
55
{
 
56
        test_x = 256;
 
57
        test_y = 256;
 
58
        start_offs = 0;
54
59
}
55
60
 
56
61
/* (dirty) debug code for looking 8bpps blitter-based gfxs */
58
63
{
59
64
        int x,y,count;
60
65
        const UINT8 *blit_ram = memory_region(screen->machine,"gfx1");
61
 
        static int test_x = 256,test_y = 256,start_offs;
62
66
 
63
 
        if(input_code_pressed(KEYCODE_Z))
 
67
        if(input_code_pressed(screen->machine, KEYCODE_Z))
64
68
                test_x++;
65
69
 
66
 
        if(input_code_pressed(KEYCODE_X))
 
70
        if(input_code_pressed(screen->machine, KEYCODE_X))
67
71
                test_x--;
68
72
 
69
 
        if(input_code_pressed(KEYCODE_A))
 
73
        if(input_code_pressed(screen->machine, KEYCODE_A))
70
74
                test_y++;
71
75
 
72
 
        if(input_code_pressed(KEYCODE_S))
 
76
        if(input_code_pressed(screen->machine, KEYCODE_S))
73
77
                test_y--;
74
78
 
75
 
        if(input_code_pressed(KEYCODE_Q))
 
79
        if(input_code_pressed(screen->machine, KEYCODE_Q))
76
80
                start_offs+=0x200;
77
81
 
78
 
        if(input_code_pressed(KEYCODE_W))
 
82
        if(input_code_pressed(screen->machine, KEYCODE_W))
79
83
                start_offs-=0x200;
80
84
 
81
 
        if(input_code_pressed(KEYCODE_E))
 
85
        if(input_code_pressed(screen->machine, KEYCODE_E))
82
86
                start_offs++;
83
87
 
84
 
        if(input_code_pressed(KEYCODE_R))
 
88
        if(input_code_pressed(screen->machine, KEYCODE_R))
85
89
                start_offs--;
86
90
 
87
91
        popmessage("%d %d %04x",test_x,test_y,start_offs);