A latchbolt assembly (140; 200), comprising: a housing assembly configured for mounting to a door, a latchbolt (142; 230) mounted in the housing assembly for movement between a projected position and a depressed position; a roller movably mounted to the housing assembly and engaged with the latchbolt (142; 230) such that movement of the latchbolt (142; 230) from the projected position to the depressed position moves the roller from a first position to a second position; and a locking sleeve movably mounted to the housing assembly for rotation about a rotational axis and for movement along the rotational axis, the locking sleeve having a recessed portion operable to partially receive the roller and a blocking surface operable to prevent movement of the roller from the first position to the second position, wherein the recessed portion comprises a first recess and a second recess; wherein the locking sleeve has a locking position in which the blocking surface is aligned with the roller and prevents movement of the roller from the first position to the second position, thereby retaining the latchbolt (142; 230) in the projected position; wherein the locking sleeve has a first unlocking position in which the first recess is aligned with the roller and permits movement of the roller from the first position to the second position, thereby enabling depression of the latchbolt (142; 230); wherein the locking sleeve has a second unlocking position in which the second recess is aligned with the roller and permits movement of the roller from the first position to the second position, thereby enabling depression of the latchbolt (142; 230); wherein the locking sleeve is configured to rotate about the rotational axis between the locking position and the first unlocking position; and wherein the locking sleeve is configured to move linearly along the rotational axis between the locking position and the second unlocking position. a housing assembly configured for mounting to a door, a latchbolt (142; 230) mounted in the housing assembly for movement between a projected position and a depressed position; a roller movably mounted to the housing assembly and engaged with the latchbolt (142; 230) such that movement of the latchbolt (142; 230) from the projected position to the depressed position moves the roller from a first position to a second position; and a locking sleeve movably mounted to the housing assembly for rotation about a rotational axis and for movement along the rotational axis, the locking sleeve having a recessed portion operable to partially receive the roller and a blocking surface operable to prevent movement of the roller from the first position to the second position, wherein the recessed portion comprises a first recess and a second recess; wherein the locking sleeve has a locking position in which the blocking surface is aligned with the roller and prevents movement of the roller from the first position to the second position, thereby retaining the latchbolt (142; 230) in the projected position; wherein the locking sleeve has a first unlocking position in which the first recess is aligned with the roller and permits movement of the roller from the first position to the second position, thereby enabling depression of the latchbolt (142; 230); wherein the locking sleeve has a second unlocking position in which the second recess is aligned with the roller and permits movement of the roller from the first position to the second position, thereby enabling depression of the latchbolt (142; 230); wherein the locking sleeve is configured to rotate about the rotational axis between the locking position and the first unlocking position; and wherein the locking sleeve is configured to move linearly along the rotational axis between the locking position and the second unlocking position.