added extra event logic in order to prevent adding unsupported events
sets software rendering mode