mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-18 15:25:00 -05:00
cf92c0242c
functional, but the code seems to work in the library. Woohoo!
20 lines
300 B
Python
Executable File
20 lines
300 B
Python
Executable File
#!/usr/bin/env python
|
|
from ctypes import *
|
|
|
|
dll = CDLL('./libmml.so')
|
|
dll.test.restype = c_char_p
|
|
a = dll.test()
|
|
print a
|
|
|
|
dll.init.restype = None
|
|
dll.init()
|
|
|
|
class POINT(Structure):
|
|
_fields_ = [('x', c_int),
|
|
('y', c_int)]
|
|
|
|
dll.getmousepos.restype = POINT
|
|
b = dll.getmousepos()
|
|
|
|
print b.x, b.y
|