Page 1 of 1

New Function added -> Getreleased

Posted: Thu Jun 04, 2015 4:11 pm
by FrenchyKiel
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

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")	
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

Re: New Function added -> Getreleased

Posted: Fri Jun 05, 2015 5:34 am
by CyberVillain
Pleae create a pull request on Github and I will have a look at it

Re: New Function added -> Getreleased

Posted: Fri Jun 05, 2015 6:37 am
by FrenchyKiel
Okay anders i have posted on the site Github the request.. i hope ist okay.. its first time i am using this type of tool!!