New Function added -> Getreleased

Official forum for open source FreePIE discussion and development.
Post Reply
FrenchyKiel
One Eyed Hopeful
Posts: 47
Joined: Thu Oct 03, 2013 7:10 am

New Function added -> Getreleased

Post 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
You do not have the required permissions to view the files attached to this post.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: New Function added -> Getreleased

Post by CyberVillain »

Pleae create a pull request on Github and I will have a look at it
FrenchyKiel
One Eyed Hopeful
Posts: 47
Joined: Thu Oct 03, 2013 7:10 am

Re: New Function added -> Getreleased

Post 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!!
Post Reply

Return to “FreePIE”