diff --git a/modules/gfx/pymod/wrap_gfx.cc b/modules/gfx/pymod/wrap_gfx.cc
index 1e1cfab289905673be8a732582ff238121d082b1..6b731fc86356da084268962c6b402d54698cc5df 100644
--- a/modules/gfx/pymod/wrap_gfx.cc
+++ b/modules/gfx/pymod/wrap_gfx.cc
@@ -129,6 +129,7 @@ BOOST_PYTHON_MODULE(_gfx)
    .export_values()
   ;
   class_<InputEvent>("InputEvent", init<InputDevice, InputCommand, float>())
+   .def(init<InputDevice,InputCommand,int,int,float>())
   ;
   class_<PrimList, bases<GfxObj>, PrimListP, boost::noncopyable>("PrimList", init<const String& >())
     .def("Clear",&PrimList::Clear)