This file is indexed.

/usr/share/psychtoolbox-3/PsychHardware/PsychGamepad/HatLeftDown.m is in psychtoolbox-3-common 3.0.11.20131230.dfsg1-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function result = HatLeftDown
% result = HatLeftDown
% Return a constant for hat left and down position.  To read a hat position, use:
% JOYSTICK(joystickNumber,'GetHat',hatNumber).  

% 8/17/01   awi wrote it
% 7/21/03   awi added switch and OS X condition.
% 10/6/05   awi Note here cosmetic changes by dgp between 7/21/03 and 10/6/05


if IsOSX 
	result = 6;
end