reading the Sony PS3 controller with pc ?

Not sure is this is in the correct place

is it possible to read the PS3 controller key strokes using a pc

i want to write a windows program to read the PS3 and use it as an interface

any ideas ??