Exactly what do you mean with “the force the user exerts”? I assume this is not the same force as the force that is rendered on the haptics device. If that is what you want then the DeviceLog class might be useful to you.
If you set it up so that you only have passive forces which reacts to the users input then you could probably fake a direct mapping. Such as using a SpringEffect to measure the force the user inputs. You still would have to account for things like gravity perhaps to get a better measurement though.
Thanks for your help Markus, I will try what you suggested.
I have another question.
I am writing a simple game so that when the user goes along a path they can collect tokens similar to an endless runner game. Do you have any suggestions on how I could go about this, any examples that I could look at?
I so far created 1 scene with one straight path it has tokens on the path however when the user touches the token only the first one disappears.
You could take a look at the tutorials section in the wiki. http://www.h3dapi.org/modules/mediawiki/index.php/H3DAPI_Tutorials
I was thinking about the light a bomb with a match tutorial.
From there we also (apparently) have a link that I forgot about to an external site with tutorials. On that site they do have a “block maze” tutorial. So that is probably the closest to a simple game you could find.