Skip to content

Commit

Permalink
Merge branch 'alekmaul:develop' into develop
Browse files Browse the repository at this point in the history
and some other fixes from previous commit
  • Loading branch information
DigiDwrf committed Apr 3, 2024
2 parents 7385179 + 58e1146 commit 9f06c3e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pvsneslib/include/snes/sprite.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ void oamClear(u16 first, u8 numEntries);
\param tileSource address of sprites graphics entry
\param tileSize size of sprites graphics
\param tilePalette address of sprites palette entry
\param tilePaletteNumber palette number (0..8)
\param paletteSize size of palette
\param tilePaletteNumber palette number (0..8)
\param address address of sprite graphics (8K-word steps)
\param oamsize default OAM size (OBJ_SIZE8_L16, OBJ_SIZE8_L32, OBJ_SIZE8_L64, OBJ_SIZE16_L32, OBJ_SIZE16_L64 and OBJ_SIZE32_L64)
*/
Expand Down
3 changes: 3 additions & 0 deletions pvsneslib/source/consoles.asm
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,12 @@ consoleInit:
lda.w #0 ; Begin counting vblank
sta.w snes_vblank_count

sta.w mouseConnect ; Mouse init

sep #$20
sta scr_txt_dirty ; Nothing to print on screen
sta snes_mplay5 ; For Pad function
sta snes_mouse ; Set mouse usage disabled by default

phb
pha
Expand Down
3 changes: 0 additions & 3 deletions pvsneslib/source/crt0_snes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ fast_start:
stz.w snes_frame_count
stz.w snes_frame_count_svg

stz.b snes_mouse ; set mouse usage disabled by default
stz.w mouseConnect;

jsr.l main

; write exit code to $fffd
Expand Down
8 changes: 4 additions & 4 deletions snes-examples/pads/mouse/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ bool speedset[2] = {true};
//---------------------------------------------------------------------------------
int main(void)
{
snes_mouse = true; // Let's tell the system we're using mouse bios
// Initialize SNES
consoleInit();

snes_mouse = true; // Let's tell the system we're using mouse bios (after init)

// we set mouse speed, or it will just output a random speed. We can change it later manually
mouseSpeedSet[0] = slow;
mouseSpeedSet[1] = slow;

// Initialize SNES
consoleInit();

// Init cursors sprite
oamInitGfxSet(&cursorsprite, (&cursorsprite_end - &cursorsprite), &cursorpal, 48 * 2, 0, 0x0000, OBJ_SIZE16_L32);

Expand Down

0 comments on commit 9f06c3e

Please sign in to comment.