New Function added -> Getreleased
Posted: Thu Jun 04, 2015 4:11 pm
Hi,
i have created a new function getReleased because in some situation its better to test the release function than the press function
so the coding below is functional
maybe you could include the coding on your github
the files modified are in the rar file, with the new dll
i am not expert in C#, but i have duplicate the strategy file GetPressed and created a new strategy GetReleased with some modification and others modif are in files mouse, keyboard and joystick
i have created a new function getReleased because in some situation its better to test the release function than the press function
so the coding below is functional
Code: Select all
if keyboard.getPressed(Key.S):
diagnostics.debug("key pressed")
if keyboard.getReleased(Key.S):
diagnostics.debug("key released")
if joystick[1].getPressed(0):
diagnostics.debug("joy button pressed")
if joystick[1].getReleased(0):
diagnostics.debug("joy button released")
if mouse.getPressed(0):
diagnostics.debug("mouse button pressed")
if mouse.getReleased(0):
diagnostics.debug("mouse button released")
the files modified are in the rar file, with the new dll
i am not expert in C#, but i have duplicate the strategy file GetPressed and created a new strategy GetReleased with some modification and others modif are in files mouse, keyboard and joystick