3D Touch was the next generation touch feature introduced by Apple in 2015 and even though currently only on iPhone 6s and 6s plus, we will be able to see it in all the future iPhones. Apple has also shown great interest in Apps and games that used 3D touch functionality as fun new experience and has gone ahead to feature such games heavily in the app store.
This extension allows you to enable 3D touch detection in your game on 3D Touch enabled devices IPHONE 6S and IPHONE 6S PLUS.
Example Project included
WHAT EACH FUNCTION DOES
IOSForceTouch_hasForceTouch - returns 1 if supported,0 if not supported or not enabled
IOSForceTouch_getMaximumForce - Maximum Force possible. Usually 6.67
IOSForceTouch_getRawForce - Raw Force value from returned from device. Minimum Raw Force is 1
IOSForceTouch_getForceQuotient - Force quotient of the applied force and maximum force. Always between 0 and 1 ex : 0.5 means half way down the maximum force allowed
IOSForceTouch_getControlledForceQuotient - A controlled version of force quotient. Usually when a user starts releasing the finger after a force touch, IOS continues to read the force till the finger has lost full contact with the screen. Use this value if that is not the desired behaviour for your game. This value adds a timer to touch so that force reduction is controlled. Do not use this method if you require smoother decrease of touch force. Another Alternative to this function is to add your own logic based on the Raw Force and Maximum Force, that will suit your game better.
Version 1.0.2. Published June 18, 2016
Created with GameMaker: Studio v1.4.1757
You can only review assets you've bought.
Is the extenison only distinguish one touch force?
This extenison only distinguish one touch force? There is only the extension file, where is the demo?
Thank you! Awesome Extension :)