init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
from typing import Dict, Mapping, Optional
|
||||
|
||||
from pygame.joystick import Joystick
|
||||
|
||||
def init() -> None: ...
|
||||
def get_init() -> bool: ...
|
||||
def quit() -> None: ...
|
||||
def set_eventstate(state: bool) -> None: ...
|
||||
def get_eventstate() -> bool: ...
|
||||
def get_count() -> int: ...
|
||||
def is_controller(index: int) -> bool: ...
|
||||
def name_forindex(index: int) -> Optional[str]: ...
|
||||
|
||||
class Controller:
|
||||
def __init__(self, index: int) -> None: ...
|
||||
def init(self) -> None: ...
|
||||
def get_init(self) -> bool: ...
|
||||
def quit(self) -> None: ...
|
||||
@staticmethod
|
||||
def from_joystick(joy: Joystick) -> Controller: ...
|
||||
def attached(self) -> bool: ...
|
||||
def as_joystick(self) -> Joystick: ...
|
||||
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: Mapping[str, str]) -> int: ...
|
||||
def rumble(
|
||||
self, low_frequency: float, high_frequency: float, duration: int
|
||||
) -> bool: ...
|
||||
def stop_rumble(self) -> None: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue