bro
This commit is contained in:
1 parent
de41a02749
commit
9af09cebd3
764 files changed
+54218
-78859
No files matched your search
@@ -1,34 +1,35 @@
|
||||
from typing import final
|
||||
from typing import Dict, Mapping, Optional
|
||||
|
||||
from pygame.joystick import JoystickType
|
||||
from pygame.typing import ColorLike
|
||||
|
||||
def init() -> None: ...
|
||||
def get_init() -> bool: ...
|
||||
def quit() -> None: ...
|
||||
def is_controller(device_index: int) -> bool: ...
|
||||
def set_eventstate(state: bool) -> None: ...
|
||||
def get_eventstate() -> bool: ...
|
||||
def update() -> None: ...
|
||||
def get_count() -> int: ...
|
||||
@final
|
||||
def is_controller(index: int) -> bool: ...
|
||||
def name_forindex(index: int) -> Optional[str]: ...
|
||||
|
||||
class Controller:
|
||||
def __new__(cls, device_index: int) -> Controller: ...
|
||||
def __init__(self, device_index: int) -> None: ...
|
||||
@classmethod
|
||||
def from_joystick(cls, joystick: JoystickType) -> Controller: ...
|
||||
def get_init(self) -> bool: ...
|
||||
def init(self) -> None: ...
|
||||
def quit(self) -> None: ...
|
||||
@property
|
||||
def id(self) -> int: ...
|
||||
def __init__(self, index: int) -> None: ...
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
@property
|
||||
def id(self) -> int: ...
|
||||
def init(self) -> None: ...
|
||||
def get_init(self) -> bool: ...
|
||||
def quit(self) -> None: ...
|
||||
@staticmethod
|
||||
def from_joystick(joy: JoystickType) -> Controller: ...
|
||||
def attached(self) -> bool: ...
|
||||
def as_joystick(self) -> JoystickType: ...
|
||||
def get_axis(self, axis: int) -> int: ...
|
||||
def get_button(self, button: int) -> bool: ...
|
||||
def get_mapping(self) -> dict[str, str]: ...
|
||||
def set_mapping(self, mapping: dict[str, str]) -> int: ...
|
||||
def get_mapping(self) -> Dict[str, str]: ...
|
||||
def set_mapping(self, mapping: Mapping[str, str]) -> int: ...
|
||||
def rumble(
|
||||
self, low_frequency: float, high_frequency: float, duration: int
|
||||
) -> bool: ...
|
||||
def stop_rumble(self) -> None: ...
|
||||
def set_led(self, color: ColorLike, /) -> bool: ...
|
||||
Reference in new issue
Block a user