Maybe mouse clicks may use the game
This commit is contained in:
@ -5,6 +5,7 @@ import curses
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from squirrelbattle.display.texturepack import TexturePack
|
||||
from squirrelbattle.game import Game
|
||||
from squirrelbattle.tests.screen import FakePad
|
||||
|
||||
|
||||
@ -86,7 +87,7 @@ class Display:
|
||||
def display(self) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
def handle_click(self, y: int, x: int) -> None:
|
||||
def handle_click(self, y: int, x: int, game: Game) -> None:
|
||||
"""
|
||||
A mouse click was performed on the coordinates (y, x) of the pad.
|
||||
Maybe it can do something.
|
||||
|
Reference in New Issue
Block a user