HapticLib: a haptic feedback library for embedded platforms