Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

cl_mouselook2

🟦 Executable on Client

cl_mouselook2 <value>

Set to 1 to use mouse for look, 0 for keyboard look. Cannot be set while connected to a server.

Note:

The value is saved and will be restored on next startup.