Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/bastienleonard/pysfml2-cython
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed May 3, 2011
2 parents 83d4df9 + b8c3c7f commit f640e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions decl.pxd
Expand Up @@ -59,6 +59,7 @@ cdef extern from "SFML/Graphics.hpp" namespace "sf::Event":
bint Alt
bint Control
bint Shift
bint System

cdef struct MouseMoveEvent:
int X
Expand Down
3 changes: 2 additions & 1 deletion sf.pyx
Expand Up @@ -1066,6 +1066,7 @@ cdef wrap_event_instance(decl.Event *p_cpp_instance):
ret.alt = p_cpp_instance.Key.Alt
ret.control = p_cpp_instance.Key.Control
ret.shift = p_cpp_instance.Key.Shift
ret.system = p_cpp_instance.Key.System
elif (p_cpp_instance.Type == declevent.MouseButtonPressed or
p_cpp_instance.Type == declevent.MouseButtonReleased):
ret.button = p_cpp_instance.MouseButton.Button
Expand Down Expand Up @@ -1496,7 +1497,7 @@ cdef class Drawable:
def __set__(self, float value):
self.p_this.SetY(value)

def tranform_to_local(self, float x, float y):
def transform_to_local(self, float x, float y):
cdef decl.Vector2f cpp_point
cdef decl.Vector2f res

Expand Down

0 comments on commit f640e3c

Please sign in to comment.