mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-10 19:35:10 -05:00
PyMML indentation fix + cleanup.
This commit is contained in:
parent
054e04c615
commit
e57b3e7213
@ -14,15 +14,10 @@ class Mouse(object):
|
|||||||
It will allow several ways to set mouse positions and
|
It will allow several ways to set mouse positions and
|
||||||
buttons. __getitem__ and __setitem__ are also implemented,
|
buttons. __getitem__ and __setitem__ are also implemented,
|
||||||
so one can access mouse buttons states and positions with [].
|
so one can access mouse buttons states and positions with [].
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
# _mc = MMLCore reference.
|
# _mc = MMLCore reference.
|
||||||
_mc = None
|
_mc = None
|
||||||
Left ='Left'
|
Left, Right, Middle, Pos = 'Left', 'Right', 'Middle', 'Pos'
|
||||||
Right = 'Right'
|
|
||||||
Middle = 'Middle'
|
|
||||||
Pos = 'Pos'
|
|
||||||
|
|
||||||
# last pointer position
|
# last pointer position
|
||||||
_lpp = (0, 0)
|
_lpp = (0, 0)
|
||||||
|
@ -5,8 +5,8 @@ class POINT(Structure):
|
|||||||
POINT represents a point with two variables, x and y.
|
POINT represents a point with two variables, x and y.
|
||||||
POINT is mainly used for Python <-> MML communication.
|
POINT is mainly used for Python <-> MML communication.
|
||||||
'''
|
'''
|
||||||
_fields_ = [('x', c_int),
|
_fields_ = [('x', c_int),
|
||||||
('y', c_int)]
|
('y', c_int)]
|
||||||
|
|
||||||
PPOINT = POINTER(POINT)
|
PPOINT = POINTER(POINT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user