Original Post
Hi! I need your oppinion on this... I am creating a 2D platformer (mario-like) game that currently supports, as input devices, the keyboard and XBox 360 controllers, through XInput. (I might add DirectInput support for other devices later). I am planning to allow the player to move the camera a little up/down/left/right from the character to allow some degree of "free look", i.e. examine what is surrounding the character. I thought about using the right thumbstick on the X360 controller for this (the left is character movement). This should work fine and be easy to implement. However, I have no idea on how to control the camera trough the keyboard. One idea would be to change the arrow keys from character movement to camera movement if a certain key (e.g. Ctrl) is pressed, but is this perhaps a little clumsy. The player cannot move while looking up for example. Any ideas on how to do this in an elegant way? How have other similar games done it? Thanks!