Shock-resistant touchscreens for heavy machinery