added an input variant for java2d. tested and works