# PDL_SetTouchAggression

## Description

This API allows Plug-in apps (not JS/Plug-in combined apps) to set the device's touch aggression. Touch aggression refers to how the touchpanel driver evaluates touch input.

Due to irregularities and variety in finger shape, it is sometimes not clear whether one or two fingers are being used. A high aggression means the driver is more weighted towards interpreting indistinct input as one finger. A low aggression means the opposite -- indistinct input is more often interpreted as two-finger input.

When the app cards or terminates, touch aggression is automatically set back to normal.

Do not call this before calling SDL_Init. Doing so will most likely result in not being able to communicate with the Touch Aggression service.

## Syntax

>     PDL_Err PDL_SetTouchAggression(PDL_TouchAggression aggression);

Argument | Type | Description
--- | --- | ---
aggression | enum | `PDL_TouchAggression` enum.

## Returns

>     PDL_EOTHER - App is not a Plug-in app.
>     PDL_ECONNECTION - Could not communicate with the Touch Aggression service.
>     PDL_NOERROR - Success.